Compare commits
3 Commits
e38c2d261f
...
b01b616f4b
Author | SHA1 | Date | |
---|---|---|---|
b01b616f4b | |||
2500c8da9b | |||
b3cdb3a372 |
@ -3,7 +3,12 @@
|
|||||||
detect_battery=$(upower -e | grep "battery_BAT" | head -1)
|
detect_battery=$(upower -e | grep "battery_BAT" | head -1)
|
||||||
if [ ! -z "${detect_battery}" ] ; then
|
if [ ! -z "${detect_battery}" ] ; then
|
||||||
battery=$(upower -i ${detect_battery} | grep -E "percentage" | awk '{print $2}')
|
battery=$(upower -i ${detect_battery} | grep -E "percentage" | awk '{print $2}')
|
||||||
|
state=$(upower -i ${detect_battery} | grep -E "state" | awk '{print $2}')
|
||||||
|
if [ "${state}" == "charging" ] ; then
|
||||||
|
echo " ${battery} "
|
||||||
|
else
|
||||||
echo " ${battery} "
|
echo " ${battery} "
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo " "
|
echo " "
|
||||||
fi
|
fi
|
||||||
|
@ -3,7 +3,12 @@
|
|||||||
detect_battery=$(upower -e | grep "battery_BAT" | head -1)
|
detect_battery=$(upower -e | grep "battery_BAT" | head -1)
|
||||||
if [ ! -z "${detect_battery}" ] ; then
|
if [ ! -z "${detect_battery}" ] ; then
|
||||||
battery=$(upower -i ${detect_battery} | grep -E "percentage" | awk '{print $2}')
|
battery=$(upower -i ${detect_battery} | grep -E "percentage" | awk '{print $2}')
|
||||||
|
state=$(upower -i ${detect_battery} | grep -E "state" | awk '{print $2}')
|
||||||
|
if [ "${state}" == "charging" ] ; then
|
||||||
|
echo " ${battery} "
|
||||||
|
else
|
||||||
echo " ${battery} "
|
echo " ${battery} "
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo " "
|
echo " "
|
||||||
fi
|
fi
|
||||||
|
@ -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 \
|
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 \
|
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 \
|
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
|
```shell
|
||||||
|
Loading…
x
Reference in New Issue
Block a user