mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Refresh clock at exactly 00 seconds. Update interval in dwmblocks/config.h has to be 0
This commit is contained in:
parent
c3eefd7a68
commit
98abd409f9
@ -1,5 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Refresh clock at exactly 00 seconds
|
||||
refresh(){
|
||||
sleep $((60-$(date "+%S")))
|
||||
kill -35 $(pidof dwmblocks)
|
||||
}
|
||||
|
||||
clock=$(date '+%I')
|
||||
|
||||
case "$clock" in
|
||||
@ -27,3 +33,4 @@ case $BLOCK_BUTTON in
|
||||
esac
|
||||
|
||||
date "+%Y %b %d (%a) $icon%I:%M%p"
|
||||
refresh &
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user