wip
This commit is contained in:
1 parent
1be1837920
commit
c79ff6e8c1
6 files changed
+61
-179
No files matched your search
+13
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
last=$(cat /tmp/last_wallpaper_time)
|
||||
|
||||
now=$(date +%s)
|
||||
remaining=$((600 - (now - last)))
|
||||
|
||||
[ "$remaining" -lt 0 ] && remaining=0
|
||||
|
||||
min=$((remaining / 60))
|
||||
sec=$((remaining % 60))
|
||||
|
||||
# Format as mm:ss
|
||||
printf "%02d:%02d\n" "$min" "$sec"
|
||||
Reference in new issue
Block a user