arch-setup/files/waybar/scripts/battery.sh

6 lines
No EOL
140 B
Bash
Executable file

#!/bin/bash
# check-battery.sh
if [[ $(cat /sys/class/power_supply/BAT0/capacity) -lt 85 ]]; then
notify-send "⚠️ Akku niedrig!"
fi