displayselect improved, dmenu dox added

This commit is contained in:
Luke Smith
2018-04-09 12:32:32 -07:00
parent fdc161b3ff
commit e75e7b680f
2 changed files with 5 additions and 8 deletions

View File

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