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

6 lines
244 B
Bash
Executable File

#!/bin/bash
DETAILS=$(upower -i /org/freedesktop/UPower/devices/battery_BAT1 | grep -E "state|percentage|energy|energy-full|energy-rate|voltage")
echo "$DETAILS" | zenity --text-info --title="Detalles de la Batería" --width=400 --height=300