pointfichiers/bar/eww/scripts/power_profile

10 lines
225 B
Bash
Executable file

#!/bin/dash
if [ "$1" = "next" ]; then
asusctl profile -n
profile=$(asusctl profile -p | sed s:'Active profile is '::)
eww update power_profile="$profile"
else
asusctl profile -p | sed s:'Active profile is '::
fi