Dotfiles/bin/.bin/notifications/battery
2019-10-01 16:36:04 +01:00

6 lines
151 B
Bash
Executable file

#!/usr/bin/env bash
acpi | \
sed 's/^.*Discharging,/🔋/' | \
sed 's/^.*Charging,/🔌/' | \
sed 's/, /\n/' | tr '\n' '\0' | xargs -0 notify-send