Compare commits

...

2 Commits

Author SHA1 Message Date
975d103983 README.md 2025-09-06 14:37:37 +02:00
9907d7df13 .config/i3/scripts/battery.sh 2025-09-06 14:37:23 +02:00
2 changed files with 7 additions and 2 deletions

View File

@ -3,7 +3,12 @@
detect_battery=$(upower -e | grep "battery_BAT" | head -1)
if [ ! -z "${detect_battery}" ] ; then
battery=$(upower -i ${detect_battery} | grep -E "percentage" | awk '{print $2}')
echo "󰁹 ${battery} "
state=$(upower -i ${detect_battery} | grep -E "state" | awk '{print $2}')
if [ "${state}" == "charging" ] ; then
echo "󰂄 ${battery} "
else
echo "󰁹 ${battery} "
fi
else
echo "󱘖 "
fi

View File

@ -19,7 +19,7 @@ i3-wm - My tiling i3 configuration for Debian
adwaita-qt6 adwaita-qt qt5ct qt6ct rofi keepassxc wmctrl conky-all compton pcmanfm jq dex dunst \
geany xarchiver iwd fonts-noto fonts-noto-core fonts-noto-extra fonts-noto-mono procps git zenity \
xdg-desktop-portal-gtk xdg-desktop-portal xorg xserver-xorg fonts-liberation psmisc terminator \
brightnessctl iw wpasupplicant
brightnessctl iw wpasupplicant upower
````
```shell