Kleines Script, um euch alle 30 (10,5,60,..) Minuten eins aufn Deckel zu haun.
#!/usr/bin/env python from time import sleep from os import system int=30 a=1 b=0 def timehumanize(t, spc=""): s = "" if t >= 604800: s = spc + str(t / 604800) + " Wochen " t %= 604800 if t >= 86400: s += spc + str(t / 86400) + " Tage " t %= 86400 if t >= 3600: s += spc + str(t / 3600) + " Stunde(n) und " t %= 3600 if t >= 60: s += spc + str(t / 60) + " Minute(n) " t %= 60 return s.strip(spc) for i in range(1,10000): sleep(int*60) uptime=str(timehumanize((i*int*60))) system("notify-send -u critical -i /usr/share/icons/Tango/32x32/status/gtk-dialog-warning.png \"Uptime\" \""+uptime+"\"")
Toll, oder? 🐸 🐸