reflect dotfile changes
This commit is contained in:
parent
0bc10fa4ef
commit
d37e632bd8
21
sh/disp
21
sh/disp
|
@ -4,26 +4,15 @@ exists() {
|
||||||
xrandr | grep ' connected' | grep "${1}" | wc -l
|
xrandr | grep ' connected' | grep "${1}" | wc -l
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bspc monitor -d 1 2 3 4 5 6 7 8 9
|
||||||
|
|
||||||
if [ $(exists "HDMI-2") -eq 1 ] && [ $(exists "LVDS-1") -eq 1 ]; then
|
if [ $(exists "HDMI-2") -eq 1 ] && [ $(exists "LVDS-1") -eq 1 ]; then
|
||||||
printf "two"
|
printf "two"
|
||||||
xrandr --output HDMI-2 --right-of LVDS-1 --auto
|
xrandr --output HDMI-2 --right-of LVDS-1 --auto
|
||||||
xrandr --output VGA-1 --off --auto
|
xrandr --output VGA-1 --off --auto
|
||||||
bspc monitor LVDS-1 -d I II III IV V VI VII VIII IX X
|
bspc monitor LVDS-1 -d 1 2 3 4 5 6 7 8 9
|
||||||
bspc monitor HDMI-2 -d I II III IV V VI VII VIII IX X
|
bspc monitor HDMI-2 -d 1 2 3 4 5 6 7 8 9
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $(exists "HDMI-2") -eq 1 ]; then
|
# default configuration's fine
|
||||||
printf "one"
|
|
||||||
xrandr --output LVDS-1 --off --auto
|
|
||||||
xrandr --output VGA-1 --off --auto
|
|
||||||
bspc monitor -d I II III IV V VI VII VIII IX X
|
|
||||||
bspc monitor -g 1680x1050+0+0
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ $(exists "LVDS-1") -eq 1 ]; then
|
|
||||||
bspc monitor -d I II III IV V VI VII VIII IX X
|
|
||||||
bspc monitor LVDS-1 -a I II III IV V VI VII VIII IX
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
Loading…
Reference in New Issue