diff options
author | davidovski <david@davidovski.xyz> | 2023-10-09 17:42:22 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2023-10-09 17:42:22 +0100 |
commit | 02a4a3a4c1e6116158b807674709f26933ac5b10 (patch) | |
tree | 84f325f6e8ed2a6ccc618ebb358cea8f1faa95e9 /scripts/gamma.sh | |
parent | 051ed527f64b0d7f400f76244b3d63a7ac98bb70 (diff) |
Add desktop background
Diffstat (limited to 'scripts/gamma.sh')
-rwxr-xr-x | scripts/gamma.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/gamma.sh b/scripts/gamma.sh index 796b561..8de1b80 100755 --- a/scripts/gamma.sh +++ b/scripts/gamma.sh @@ -1,10 +1,10 @@ #!/bin/bash -MAIN_DP=eDP1; +MAIN_DP=$($HOME/.scripts/primary-display.sh); v=$1 if [ $# -ne 0 ]; then xrandr --output $MAIN_DP --gamma $(paste -d" " <(xrandr | grep " connected" | cut -f1 -d " ") <(xrandr --current --verbose | grep "Gamma" | cut -f7 -d" " | cut -f1 -d":" | xargs -I % echo "1/%") | grep $MAIN_DP | cut -d" " -f2 | xargs -I % echo "%*$v" | bc -l) else - xrandr --output $MAIN_DP --gamma 1 + xrandr --output $MAIN_DP --gamma 1.1 fi |