neodotfiles/new-config/.config/waybar/power-profiles
Clay Gomera 9f8ac8a84e updated
2023-02-25 12:12:09 -04:00

10 lines
265 B
Bash
Executable file

#!/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"