diff --git a/herbstluftwm/autostart b/herbstluftwm/autostart index f6892c0..f41f2da 100755 --- a/herbstluftwm/autostart +++ b/herbstluftwm/autostart @@ -11,6 +11,7 @@ hc emit_hook reload xsetroot -solid '#5A8E3A' # reset +rm ~/.config/herbstluftwm/*.log hc keyunbind --all pkill xautolock # WONT WORK --> cause process has other name no idea which though pkill -s 15 hl_status_deamon #send SIGTERM for correct termination during write diff --git a/herbstluftwm/hl_constants.py b/herbstluftwm/hl_constants.py index 2490eaf..0a96df7 100644 --- a/herbstluftwm/hl_constants.py +++ b/herbstluftwm/hl_constants.py @@ -14,6 +14,6 @@ BATTERY_LOG = "battery.log" IP_LOG = "ip.log" LOGINS_LOG = "logins.log" -BATTERY_CRITICAL = 2 # in % +BATTERY_CRITICAL = 3 # in % BAT_WARNING_STR = ">>>>>>>>>>>>>>>> ------------ WARNING BATTER FAILURE IMMINENT ------------ <<<<<<<<<<<<<" VALUES_KEPT = 10 diff --git a/herbstluftwm/hl_panel_content.py b/herbstluftwm/hl_panel_content.py index 0811d67..7e9f7ec 100755 --- a/herbstluftwm/hl_panel_content.py +++ b/herbstluftwm/hl_panel_content.py @@ -47,8 +47,11 @@ def date(): return hl_utils.shexec("date +' ^fg(#efefef)%H:%M^fg(#909090), %Y-%m-^fg(#efefef)%d'") def logins(): - with open(hl_utils.hlpath(LOGINS_LOG),'r') as f: - return f.read() + try: + with open(hl_utils.hlpath(LOGINS_LOG),'r') as f: + return f.read() + except: + return "" if __name__ == "__main__": print(logins(),ip(),vpn(),guthaben(),battery(),date(),sep='',end='')