summaryrefslogtreecommitdiffstats
path: root/.scripts/i3cmds/displayselect
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-02-02 13:10:43 -0500
committerGitHub <noreply@github.com>2019-02-02 13:10:43 -0500
commita37aba2078c083fecb9761e5dd6c740cf1414989 (patch)
tree3b9e126da9cf874285718c91702fb14501a3faf5 /.scripts/i3cmds/displayselect
parent18378660cae369465f520fb656c64b59dc0c5411 (diff)
parent1bffcd12c363064829682e16690430a118d962a4 (diff)
downloadeibhear-a37aba2078c083fecb9761e5dd6c740cf1414989.tar.gz
eibhear-a37aba2078c083fecb9761e5dd6c740cf1414989.tar.zst
eibhear-a37aba2078c083fecb9761e5dd6c740cf1414989.zip
Merge branch 'master' into dmenuumount
Diffstat (limited to '.scripts/i3cmds/displayselect')
-rwxr-xr-x.scripts/i3cmds/displayselect4
1 files changed, 2 insertions, 2 deletions
diff --git a/.scripts/i3cmds/displayselect b/.scripts/i3cmds/displayselect
index 2c3133f..e526014 100755
--- a/.scripts/i3cmds/displayselect
+++ b/.scripts/i3cmds/displayselect
@@ -49,7 +49,7 @@ morescreen() { # If multi-monitor is selected and there are more than two screen
multimon() { # Multi-monitor handler.
case "$(echo "$screens" | wc -l)" in
- 1) xrandr $(echo "$allposs" | awk '{print "--output", $1, "--off"}' | tr '\n' ' ') ;;
+ 1) xrandr $(echo "$allposs" | grep -v "$screens" | awk '{print "--output", $1, "--off"}' | tr '\n' ' ') ;;
2) twoscreen ;;
*) morescreen ;;
esac ;}
@@ -65,7 +65,7 @@ chosen=$(printf "%s\\nmulti-monitor\\nmanual selection" "$screens" | dmenu -i -p
case "$chosen" in
"manual selection") arandr ; exit ;;
"multi-monitor") multimon ;;
- *) xrandr --output "$chosen" --auto --scale 1.0x1.0 $(echo "$screens" | grep -v "$chosen" | awk '{print "--output", $1, "--off"}' | tr '\n' ' ') ;;
+ *) xrandr --output "$chosen" --auto --scale 1.0x1.0 $(echo "$allposs" | grep -v "$chosen" | awk '{print "--output", $1, "--off"}' | tr '\n' ' ') ;;
esac
setbg # Fix background if screen size/arangement has changed.