7 lines
167 B
Bash
Executable File
7 lines
167 B
Bash
Executable File
#!/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
|