Corrected error when setting display variable

This commit is contained in:
Richard 2019-02-03 14:57:13 +01:00
parent 526261f840
commit 1764b49779

View File

@ -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