commit ef8363994252a0379e8e1c2e9f3638025d9e934c
parent 1b5f252b7bf53c9fe813f2d7205f5106cc4f336f
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Mon, 21 Jan 2019 06:59:31 +0100
Fix external screens not being disabled after unplugged
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/links/bin/displayselect b/links/bin/displayselect
@@ -79,7 +79,7 @@ if [ $(echo "$screens" | wc -l) -gt 1 ]; then
"manual selection") arandr ; exit ;;
"multi-monitor") multimon ;;
*) xrandr --output "$chosen" --auto --scale 1.0x1.0 \
- $(echo "$screens" | grep -v "$chosen" | \
+ $(echo "$allpos" | grep -v "$chosen" | \
awk '{print "--output", $1, "--off"}' | tr '\n' ' ') ;;
esac
fi