Clean up i3 config

Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
Severin Kaderli 2019-02-27 00:24:38 +01:00
parent 171f1ca97e
commit df6b44e541
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
8 changed files with 114 additions and 90 deletions

View file

@ -19,8 +19,9 @@ PROMPT="Power Options"
ACTIONS=(
"1: Reboot"
"2: Shutdown"
"3: Performance Mode"
"4: Powersave Mode"
"3: Lock Screen"
"4: Performance Mode"
"5: Powersave Mode"
)
SELECTION=$(printf '%s\n' "${ACTIONS[@]}" | rofi -dmenu -p "${PROMPT}" | cut -d ":" -f1)
@ -32,10 +33,13 @@ case "${SELECTION}" in
systemctl poweroff
;;
"3")
screenlock.sh
;;
"5")
gksudo "cpupower frequency-set -g performance"
optirun -b primus nvidia-settings -a '[gpu:0]/GPUPowerMizerMode=2' -c :8 > /dev/null
;;
"4")
"6")
gksudo "cpupower frequency-set -g powersave"
optirun -b primus nvidia-settings -a '[gpu:0]/GPUPowerMizerMode=0' -c :8 > /dev/null
;;