From 1764b4977987a7f9f5af00b4935c8ebefe9130c7 Mon Sep 17 00:00:00 2001 From: Richard Date: Sun, 3 Feb 2019 14:57:13 +0100 Subject: [PATCH] Corrected error when setting display variable --- .scripts/i3cmds/displayselect | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.scripts/i3cmds/displayselect b/.scripts/i3cmds/displayselect index 49180d1e..bb11f825 100755 --- a/.scripts/i3cmds/displayselect +++ b/.scripts/i3cmds/displayselect @@ -37,8 +37,8 @@ twoscreen() { # If multi-monitor is selected and there are two screens. direction=$(printf "left\\nright\\nabove\\nbelow" | dmenu -i -p "What side of $primary should $secondary be on?") # xrandr uses -of as ending for left and right - if [ "$direction" = "left" ] || [ "$direction" = "right"]; then - $direction=$(printf "%s-of" "$direction") + if [ "$direction" = "left" ] || [ "$direction" = "right" ]; then + direction=$(printf "%s-of" "$direction") fi xrandr --output "$primary" --auto --scale 1.0x1.0 --output "$secondary" --"$direction" "$primary" --auto --scale 1.0x1.0 fi