Compare commits
2 Commits
b2f456bce1
...
975d103983
Author | SHA1 | Date | |
---|---|---|---|
975d103983 | |||
9907d7df13 |
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user