diff options
Diffstat (limited to '')
| -rwxr-xr-x | scripts/commands/:gamma | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/commands/:gamma b/scripts/commands/:gamma new file mode 100755 index 0000000..2b2a1f8 --- /dev/null +++ b/scripts/commands/:gamma @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +if [[ $# == 1 ]]; then + r=$1; g=$1; b=$1; +else + r=${1:-'1'}; g=${2:-'1'}; b=${3:-'1'}; +fi; + +notify-send "Setting gamma to ($r, $g, $b)"; +xrandr --output eDP-1 --brightness 1 --gamma $r:$g:$b + |
