neodotfiles/user/.config/waybar/power-profiles
2024-03-09 11:36:29 -04:00

10 lines
233 B
Bash
Executable file

#!/bin/bash
currntpwr=$(powerprofilesctl get)
if [ "${currntpwr}" = "performance" ]; then
pwr="󰓅"
elif [ "${currntpwr}" = "balanced" ]; then
pwr="󰾅"
elif [ "${currntpwr}" = "power-saver" ]; then
pwr="󰾆"
fi
echo "$pwr"