summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-01-18 13:20:51 -0500
committerLuke Smith <luke@lukesmith.xyz>2019-01-18 13:20:51 -0500
commit7a0346d01ae533a2b1dc65df99803612f87c7c7b (patch)
treeafb335dd168f15af3df0b092bcd5f7174856ab37
parent62bec93648b7966e1e3862c7fd5a30ec7dd4a7df (diff)
downloadeibhear-7a0346d01ae533a2b1dc65df99803612f87c7c7b.tar.gz
eibhear-7a0346d01ae533a2b1dc65df99803612f87c7c7b.tar.zst
eibhear-7a0346d01ae533a2b1dc65df99803612f87c7c7b.zip
1 multimon fix
-rwxr-xr-x.scripts/i3cmds/displayselect2
1 files changed, 1 insertions, 1 deletions
diff --git a/.scripts/i3cmds/displayselect b/.scripts/i3cmds/displayselect
index 2c3133f..84d1855 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 ;}