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

5 lines
240 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" | yad --text-info --title="Detalles de la Batería" --width=400 --height=300