add quick actions tab
This commit is contained in:
9
modules/home/wayland/apps/eww/bar/scripts/power-save
Executable file
9
modules/home/wayland/apps/eww/bar/scripts/power-save
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
current=$(eww state 2>/dev/null | grep '^power-save:' | awk '{print $2}')
|
||||
if [ "$current" = "true" ]; then
|
||||
powerprofilesctl set balanced 2>/dev/null || true
|
||||
echo false
|
||||
else
|
||||
powerprofilesctl set power-saver 2>/dev/null || true
|
||||
echo true
|
||||
fi
|
||||
Reference in New Issue
Block a user