From 865728068c965e066d0f8971c5b5ba26e12e7dce Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Thu, 24 Dec 2020 00:06:27 +0530 Subject: Adds scripts and links scripts and wallpapers --- scripts/commands/:gamma | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 scripts/commands/:gamma (limited to 'scripts/commands/:gamma') 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 + -- cgit v1.3.1