1
0
Fork 0
dotfiles/.local/bin/daemons/sbd-battery
2023-02-27 09:34:11 +01:00

7 lines
187 B
Bash
Executable file

#!/bin/sh
# battery status file is sent in as an argument from sb-battery
upower --monitor-detail -i "$1" | while read -r _; do
pkill -RTMIN+3 dwmblocks
timeout 5 cat > /dev/null
done