pointfichiers/bar/eww/scripts/power_profile

11 lines
225 B
Text
Raw Normal View History

2024-01-25 14:39:08 +01:00
#!/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