dotfiles/.config/waybar/scripts/check_battery_health.sh
2025-05-28 18:27:10 +02:00

5 lines
216 B
Bash
Executable File

#!/bin/bash
HEALTH=$(upower -i /org/freedesktop/UPower/devices/battery_BAT1 | grep "energy-full")
zenity --info --text="Salud de la Batería:\nLa capacidad máxima actual es $HEALTH." --title="Salud de la Batería"