Adds battery script
This commit is contained in:
parent
038b357f82
commit
d6c23ea057
1 changed files with 6 additions and 0 deletions
6
bin/.bin/notifications/battery
Executable file
6
bin/.bin/notifications/battery
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue