aboutsummaryrefslogtreecommitdiff
path: root/scripts/commands/:gamma
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2020-12-24 00:06:27 +0530
committerAkshay Nair <phenax5@gmail.com>2020-12-24 00:06:27 +0530
commit865728068c965e066d0f8971c5b5ba26e12e7dce (patch)
treec16195f0a04cf7d004fe5b396255734f4d60bb00 /scripts/commands/:gamma
parent649ef5f225039e498358c3d056dfd7fcbc56f014 (diff)
downloadnixos-config-865728068c965e066d0f8971c5b5ba26e12e7dce.tar.gz
nixos-config-865728068c965e066d0f8971c5b5ba26e12e7dce.zip
Adds scripts and links scripts and wallpapers
Diffstat (limited to '')
-rwxr-xr-xscripts/commands/:gamma11
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
+