From e75e7b680f8f5cce5a89dadc4c5514a8eee74811 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Mon, 9 Apr 2018 12:32:32 -0700 Subject: displayselect improved, dmenu dox added --- .scripts/displayselect | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.scripts') 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 -- cgit v1.3.1