Skip to content

Instantly share code, notes, and snippets.

@imba3r
Last active August 29, 2015 14:07
Show Gist options
  • Save imba3r/f1b7b9579b78bb679bc7 to your computer and use it in GitHub Desktop.
Save imba3r/f1b7b9579b78bb679bc7 to your computer and use it in GitHub Desktop.
Nvidia CS:GO Brightness & Vibrance toggle script.
#!/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