EdenQwQ/home/programs/desktop/scripts/tofi/mode
2025-03-01 22:35:08 +08:00

9 lines
230 B
Bash
Executable file

#!/bin/sh
. ~/scripts/tofi/config
entry=$(printf "power-saver\nbalanced\nperformance" | tofi_full "mode")
entry=$(echo $entry | cut -d' ' -f2 )
notify-send "Power Mode" "Setting mode to $entry"
doas powerprofilesctl set $entry