Adds battery script

This commit is contained in:
Jonathan Hodgson 2019-10-01 16:36:04 +01:00
parent c06e722565
commit 0526302f3e

6
bin/.bin/notifications/battery Executable file
View file

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