diff options
author | davidovski <david@davidovski.xyz> | 2022-12-11 18:45:10 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-12-11 18:45:10 +0000 |
commit | 3739ff6661d2f51c957118a373dafcc9709219fa (patch) | |
tree | 5407aef1c733bac34203680c5697f339261dd8b9 /scripts/cinema.sh | |
parent | 365412b61b6cfefac353fcce7d0bb470ee8953b0 (diff) |
Updated to graphite theme
Diffstat (limited to 'scripts/cinema.sh')
-rwxr-xr-x | scripts/cinema.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/cinema.sh b/scripts/cinema.sh index f7a0f23..5352a6e 100755 --- a/scripts/cinema.sh +++ b/scripts/cinema.sh @@ -1,3 +1,3 @@ #!/bin/sh -MAIN_DP=DP-3; +MAIN_DP=DP-1; v=$(xrandr --current --verbose | grep "Brightness" | cut -f2 -d " " | tr '\n' '*' | rev | cut -c 2- | rev | sed -e "s/$/==1/" | bc -l | grep -q 0 && echo 1 || echo 0); xrandr | grep " connected" | cut -f1 -d " " | while read -r line; do echo $line | grep -q $MAIN_DP && : || xrandr --output $line --brightness $v; done |