From 381aaffe4ed3caa0f1356b720f6d4fc0de5b1f8f Mon Sep 17 00:00:00 2001 From: davidovski Date: Mon, 16 May 2022 00:48:34 +0100 Subject: removed bash and added mkshrc --- scripts/cinema.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/cinema.sh') diff --git a/scripts/cinema.sh b/scripts/cinema.sh index c453260..46c7082 100755 --- a/scripts/cinema.sh +++ b/scripts/cinema.sh @@ -1,3 +1,3 @@ #!/bin/sh -MAIN_DP=DP-2; +MAIN_DP=DP-0; 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 -- cgit v1.2.3