summaryrefslogtreecommitdiff
path: root/scripts/cinema.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-07-31 22:09:31 +0100
committerdavidovski <david@davidovski.xyz>2022-07-31 22:09:31 +0100
commita4e5fe820e63d9a9bc7e101aa8c63ae9e6c13c3b (patch)
tree2fdb1454cbef05f1401fb5a2c9bee73d852b2cfb /scripts/cinema.sh
parentc475aefc0ffd1dd375f4dfc1a990052adff01237 (diff)
changes of sorts
Diffstat (limited to 'scripts/cinema.sh')
-rwxr-xr-xscripts/cinema.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/cinema.sh b/scripts/cinema.sh
index 46c7082..f7a0f23 100755
--- a/scripts/cinema.sh
+++ b/scripts/cinema.sh
@@ -1,3 +1,3 @@
#!/bin/sh
-MAIN_DP=DP-0;
+MAIN_DP=DP-3;
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