diff options
author | davidovski <david@davidovski.xyz> | 2022-05-16 00:48:34 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-05-16 00:48:34 +0100 |
commit | 381aaffe4ed3caa0f1356b720f6d4fc0de5b1f8f (patch) | |
tree | dc8a619c66a8e538f94ac2701b6e42750d0d9406 /scripts/cinema.sh | |
parent | 1406e81f40a5e0ef4632e7c518b0629514a79de3 (diff) |
removed bash and added mkshrc
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 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 |