diff options
author | xAlpharax <42233094+xAlpharax@users.noreply.github.com> | 2023-09-24 20:52:21 +0300 |
---|---|---|
committer | xAlpharax <42233094+xAlpharax@users.noreply.github.com> | 2023-09-24 20:52:21 +0300 |
commit | 21b12225b93203b2b59c7f2d3f68c2eca57172ae (patch) | |
tree | d55f196fb298048b4b00b614e48965c7ff0c9892 /nvpower | |
parent | 805c951522bc5063849b51a729b08bfdf16168df (diff) |
Tooling for changing brightness, changing gpu power state, setting up
keybinds and displaying minimalist info with the pfetch unix shellscript
Changes to be committed:
new file: backlight
new file: keybinds
new file: nvpower
new file: pfetch
Diffstat (limited to 'nvpower')
-rwxr-xr-x | nvpower | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -0,0 +1,17 @@ +#!/bin/bash + +set -e + +if [ $1 == "min" ] ; then + nvidia-settings -a "[gpu:0]/GpuPowerMizerMode=0" +fi + +if [ $1 == "max" ] ; then + nvidia-settings -a "[gpu:0]/GpuPowerMizerMode=1" +fi + +if [ $1 == "auto" ] ; then + nvidia-settings -a "[gpu:0]/GpuPowerMizerMode=2" +fi + +nvidia-settings -q GpuPowerMizerMode |