Update a bunch of configs
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
738f83183f
commit
052fb6bada
24 changed files with 474 additions and 68 deletions
|
@ -19,9 +19,10 @@ PROMPT="Power Options"
|
|||
ACTIONS=(
|
||||
"1: Reboot"
|
||||
"2: Shutdown"
|
||||
"3: Lock Screen"
|
||||
"4: Performance Mode"
|
||||
"5: Powersave Mode"
|
||||
"3: Suspend"
|
||||
"4: Lock Screen"
|
||||
"5: Performance Mode"
|
||||
"6: Powersave Mode"
|
||||
)
|
||||
|
||||
SELECTION=$(printf '%s\n' "${ACTIONS[@]}" | rofi -dmenu -p "${PROMPT}" | cut -d ":" -f1)
|
||||
|
@ -33,13 +34,16 @@ case "${SELECTION}" in
|
|||
systemctl poweroff
|
||||
;;
|
||||
"3")
|
||||
screenlock
|
||||
systemctl suspend
|
||||
;;
|
||||
"4")
|
||||
screenlock
|
||||
;;
|
||||
"5")
|
||||
gksudo "cpupower frequency-set -g performance"
|
||||
optirun -b primus nvidia-settings -a '[gpu:0]/GPUPowerMizerMode=2' -c :8 > /dev/null
|
||||
;;
|
||||
"5")
|
||||
"6")
|
||||
gksudo "cpupower frequency-set -g powersave"
|
||||
optirun -b primus nvidia-settings -a '[gpu:0]/GPUPowerMizerMode=0' -c :8 > /dev/null
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue