aboutsummaryrefslogtreecommitdiff
path: root/scripts/commands/:gamma
blob: 2b2a1f867c3da1a822d4bd2ecde0defa4164a607 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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