Compare commits

...

3 Commits

Author SHA1 Message Date
b01b616f4b README.md 2025-09-06 14:38:42 +02:00
2500c8da9b .config/waybar/scripts/battery.sh 2025-09-06 14:38:19 +02:00
b3cdb3a372 .config/sway/scripts/battery.sh 2025-09-06 14:38:12 +02:00
3 changed files with 13 additions and 3 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

@ -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 @@ sway-wm - My tiling Sway configuration for Debian
adwaita-qt6 adwaita-qt qt5ct qt6ct wofi keepassxc wmctrl procps clipman pcmanfm jq dex git \
geany xarchiver iwd fonts-noto fonts-noto-core fonts-noto-extra fonts-noto-mono waybar \
xdg-desktop-portal-gtk xdg-desktop-portal xdg-desktop-portal-wlr fonts-liberation psmisc \
sway-notification-center xwayland brightnessctl iw wpasupplicant
sway-notification-center xwayland brightnessctl iw wpasupplicant upower
````
```shell