mirror of
https://github.com/FAUSheppy/config
synced 2025-12-09 16:18:33 +01:00
added pracct deamon
This commit is contained in:
14
herbstluftwm/hl_pracct_deamon.py
Executable file
14
herbstluftwm/hl_pracct_deamon.py
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/python3
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
from hl_error import error, is_cip, shexec, color_remove
|
||||
|
||||
#Druckerguthaben
|
||||
if is_cip():
|
||||
while(True):
|
||||
out = color_remove(shexec("pr_acct").split("\n")[0]).split(' ')[-1]
|
||||
with open("pracct.log",'w') as f :
|
||||
f.write(out)
|
||||
time.sleep(60)
|
||||
sys.exit()
|
||||
Reference in New Issue
Block a user