summaryrefslogtreecommitdiffstats
path: root/.scripts/displayselect
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2018-04-09 12:32:32 -0700
committerLuke Smith <luke@lukesmith.xyz>2018-04-09 12:32:32 -0700
commite75e7b680f8f5cce5a89dadc4c5514a8eee74811 (patch)
treeb6ae460dbea6f7eeee7dcc038d19f634730bcdb8 /.scripts/displayselect
parentfdc161b3fffda21a3bbe04963d4490bb13a805fd (diff)
downloadeibhear-e75e7b680f8f5cce5a89dadc4c5514a8eee74811.tar.gz
eibhear-e75e7b680f8f5cce5a89dadc4c5514a8eee74811.tar.zst
eibhear-e75e7b680f8f5cce5a89dadc4c5514a8eee74811.zip
displayselect improved, dmenu dox added
Diffstat (limited to '.scripts/displayselect')
-rwxr-xr-x.scripts/displayselect6
1 files changed, 3 insertions, 3 deletions
diff --git a/.scripts/displayselect b/.scripts/displayselect
index a482ea6..f1f12c1 100755
--- a/.scripts/displayselect
+++ b/.scripts/displayselect
@@ -2,8 +2,7 @@
choices="laptop\nlaptopdual\nVGA\nHDMI\nManual selection"
-chosen=$(echo -e "$choices" | dmenu -i
-)
+chosen=$(echo -e "$choices" | dmenu -i)
case "$chosen" in
laptopdual) xrandr --output LVDS-1 --auto --output VGA-1 --auto --right-of LVDS-1 ;;
@@ -13,4 +12,5 @@ case "$chosen" in
"Manual selection") arandr ;;
esac
-polybar_launch
+# Relaunch polybar if there was a selection.
+[ "$chosen" == "" ] || polybar_launch