neodotfiles/new-config/.config/waybar/power-profiles

11 lines
265 B
Text
Raw Normal View History

2023-02-25 16:12:09 +00:00
#!/bin/bash
currntpwr=$(powerprofilesctl get)
if [ "${currntpwr}" = "performance" ]; then
pwr="󰓅 Performance"
elif [ "${currntpwr}" = "balanced" ]; then
pwr="󰾅 Balanced"
elif [ "${currntpwr}" = "power-saver" ]; then
pwr="󰾆 PowerSaver"
fi
echo "$pwr"