diff options
author | xAlpharax <42233094+xAlpharax@users.noreply.github.com> | 2024-02-08 13:02:03 +0200 |
---|---|---|
committer | xAlpharax <42233094+xAlpharax@users.noreply.github.com> | 2024-02-08 13:02:03 +0200 |
commit | e41164cc452089c01f6764458ceb0127ab40c928 (patch) | |
tree | 7b61822b723f14dc694fb8e54bce8706543dde3f /nvpower | |
parent | 2c77874f1f6b23e947f040c187a4df65f147f462 (diff) |
Overall better functionality + new scripts.
Changes to be committed:
new file: vpn
modified: X11/xinit
modified: zsh/aliases
modified: zsh/zshrc
modified: zsh/env
modified: color-picker
modified: keybinds
modified: nvpower
modified: pmenu
modified: Vencord/settings/settings.json
modified: zathura/zathurarc
modified: ranger/rifle.conf
modified: ranger/rc.conf
modified: btop/btop.conf
Diffstat (limited to 'nvpower')
-rwxr-xr-x | nvpower | 19 |
1 files changed, 10 insertions, 9 deletions
@@ -2,16 +2,17 @@ set -e -if [ $1 == "min" ] ; then - nvidia-settings -a "[gpu:0]/GpuPowerMizerMode=0" -fi +case $1 in -if [ $1 == "max" ] ; then - nvidia-settings -a "[gpu:0]/GpuPowerMizerMode=1" -fi + min) + nvidia-settings -a "[gpu:0]/GpuPowerMizerMode=0" ;; -if [ $1 == "auto" ] ; then - nvidia-settings -a "[gpu:0]/GpuPowerMizerMode=2" -fi + max) + nvidia-settings -a "[gpu:0]/GpuPowerMizerMode=1" ;; + + auto) + nvidia-settings -a "[gpu:0]/GpuPowerMizerMode=2" + +esac nvidia-settings -q GpuPowerMizerMode |