mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
more posix compliant autism
This commit is contained in:
parent
8e81c30a5d
commit
58dcdd4378
@ -1,8 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
choices="laptop\nlaptopdual\nVGA\nHDMI\nManual selection"
|
chosen=$(printf "laptop\\nlaptopdual\\nVGA\\nHDMI\\nManual selection" | dmenu -i)
|
||||||
|
|
||||||
chosen=$(echo -e "$choices" | dmenu -i)
|
|
||||||
|
|
||||||
case "$chosen" in
|
case "$chosen" in
|
||||||
laptopdual) xrandr --output LVDS-1 --auto --output VGA-1 --auto --right-of LVDS-1 ;;
|
laptopdual) xrandr --output LVDS-1 --auto --output VGA-1 --auto --right-of LVDS-1 ;;
|
||||||
@ -13,4 +11,4 @@ case "$chosen" in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# Relaunch polybar if there was a selection.
|
# Relaunch polybar if there was a selection.
|
||||||
[ "$chosen" == "" ] || polybar_launch
|
[ "$chosen" = "" ] || polybar_launch
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user