This commit is contained in:
Clay Gomera 2022-08-17 08:39:39 -04:00
parent 463fa0a7a3
commit e2f655b6d1

View file

@ -2,11 +2,11 @@
# Loop through all attached batteries and format the info # Loop through all attached batteries and format the info
currntpwr=$(powerprofilesctl get) currntpwr=$(powerprofilesctl get)
if [ "${currntpwr}" = "performance" ]; then if [ "${currntpwr}" = "performance" ]; then
pwr="| 🔥 Performance" pwr="- 🔥 Performance"
elif [ "${currntpwr}" = "balanced" ]; then elif [ "${currntpwr}" = "balanced" ]; then
pwr="| ⚖ Balanced" pwr="- ⚖ Balanced"
elif [ "${currntpwr}" = "power-saver" ]; then elif [ "${currntpwr}" = "power-saver" ]; then
pwr="| ⏱ Power Saver" pwr="- ⏱ Power Saver"
fi fi
for battery in /sys/class/power_supply/BAT?*; do for battery in /sys/class/power_supply/BAT?*; do
# If non-first battery, print a space separator. # If non-first battery, print a space separator.