mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Optimization
This commit is contained in:
parent
1530d76019
commit
04eb838446
@ -2,8 +2,7 @@
|
||||
|
||||
# Refresh clock at exactly 00 seconds
|
||||
refresh(){
|
||||
PID=$(pidof -x `basename "$0"`)
|
||||
[ "$PID" = "$BASHPID" ] || exit 1 # exit if already running
|
||||
pidof -o %PPID -x $0 > /dev/null 2>&1 && exit 1 # exit if already running
|
||||
sleep $((60-$(date "+%S")))
|
||||
kill -35 $(pidof dwmblocks)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user