mirror of
https://github.com/FAUSheppy/config
synced 2025-12-10 00:28:32 +01:00
cleaning up hl dir
This commit is contained in:
15
herbstluftwm/hl_status_deamon.py
Executable file
15
herbstluftwm/hl_status_deamon.py
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/python3
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
from hl_utils import error, is_cip, shexec, color_remove, hlpath
|
||||
|
||||
#Druckerguthaben
|
||||
if is_cip():
|
||||
while(True):
|
||||
path = hlpath("pracct.log")
|
||||
out = color_remove(shexec("pr_acct").split("\n")[0]).split(' ')[-1]
|
||||
with open(path,'w+') as f:
|
||||
f.write(out)
|
||||
time.sleep(30)
|
||||
sys.exit()
|
||||
Reference in New Issue
Block a user