1
0
Fork 0
dotfiles/.local/bin/daemons/sbd-battery

8 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