From 58dcdd43780f4613cc99131f9d364270a2719389 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 16 Sep 2018 13:55:23 -0400 Subject: [PATCH] more posix compliant autism --- .scripts/displayselect | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.scripts/displayselect b/.scripts/displayselect index f1f12c1..1362926 100755 --- a/.scripts/displayselect +++ b/.scripts/displayselect @@ -1,8 +1,6 @@ #!/bin/sh -choices="laptop\nlaptopdual\nVGA\nHDMI\nManual selection" - -chosen=$(echo -e "$choices" | dmenu -i) +chosen=$(printf "laptop\\nlaptopdual\\nVGA\\nHDMI\\nManual selection" | dmenu -i) case "$chosen" in laptopdual) xrandr --output LVDS-1 --auto --output VGA-1 --auto --right-of LVDS-1 ;; @@ -13,4 +11,4 @@ case "$chosen" in esac # Relaunch polybar if there was a selection. -[ "$chosen" == "" ] || polybar_launch +[ "$chosen" = "" ] || polybar_launch