neodotfiles/new-config/.config/waybar/power-profiles
Clay Gomera 1f3326c5fa updated
2023-04-01 01:00:52 -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"