feat: change the statusbar update calls

This commit is contained in:
David JULIEN 2021-02-13 20:17:30 +01:00
parent 10321a0d21
commit ef4b9b8e93
3 changed files with 6 additions and 7 deletions

View File

@ -24,3 +24,5 @@ else
dunstify -r 100002 -u "$criticity" "Current volume :" "$level%"
fi
kill -38 $(pidof dwmblocks)

View File

@ -24,14 +24,9 @@ update() { \
# We want the notification to be sent every 5 mins
# But only if the computer is unplugged
if [ "$(cat /sys/class/power_supply/AC/online)" = 0 ]; then
notify && refbar
notify && kill -36 $(pidof dwmblocks)
fi
wait
}
while :; do
update
# Sleep for 5 minutes before sending another notification
sleep 300 &
wait
done
update

View File

@ -20,3 +20,5 @@ else
dunstify -r 10010 -u "normal" -i "$HOME/$path" "MPD" "$out"
fi
kill -39 $(pidof dwmblocks)