6 lines
151 B
Bash
Executable file
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
|