diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2018-09-16 13:55:23 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2018-09-16 13:55:23 -0400 |
| commit | 58dcdd43780f4613cc99131f9d364270a2719389 (patch) | |
| tree | 50d61f3997b780be7ac61a9048f34d40d1a53291 | |
| parent | 8e81c30a5d4284aec0542ab36712f8d8b3dc1e2c (diff) | |
| download | eibhear-58dcdd43780f4613cc99131f9d364270a2719389.tar.gz eibhear-58dcdd43780f4613cc99131f9d364270a2719389.tar.zst eibhear-58dcdd43780f4613cc99131f9d364270a2719389.zip | |
more posix compliant autism
| -rwxr-xr-x | .scripts/displayselect | 6 |
1 files 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 |
