Last active
August 29, 2015 14:07
-
-
Save imba3r/f1b7b9579b78bb679bc7 to your computer and use it in GitHub Desktop.
Nvidia CS:GO Brightness & Vibrance toggle script.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#------------------------------------------------- | |
# description: toggle vibrance and brightness | |
# between normal and good-for-cs:go values. | |
#------------------------------------------------- | |
COLORS="Green Red Blue" | |
DISPLAY=[DPY:DVI-I-1] | |
CTRL_DISPLAY=:0 | |
case "$1" in | |
'on') | |
VIBRANCE=800 | |
BRIGHTNESS=0.5 | |
;; | |
'off') | |
VIBRANCE=0 | |
BRIGHTNESS=0 | |
;; | |
*) | |
echo "$0 <on|off>" | |
exit | |
;; | |
esac | |
nvidia-settings -c $CTRL_DISPLAY -a ${DISPLAY}/DigitalVibrance=${VIBRANCE} | |
for COLOR in $COLORS; do | |
nvidia-settings -c :0 -a ${DISPLAY}/${COLOR}Brightness=${BRIGHTNESS} | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment