Several fixes, patched dwmblocks so it shows spaces around the bar
This commit is contained in:
6
dwmblocks_scripts/battery_notify
Executable file
6
dwmblocks_scripts/battery_notify
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
PRCT=$(acpi | awk -F, '{ print $2 }' | sed 's/%//g' | xargs)
|
||||
if [[ $PRCT -lt 20 ]]; then
|
||||
notify-send -u critical "Battery level is CRITICAL!" "$PRCT"
|
||||
fi
|
Reference in New Issue
Block a user