2021-02-15 12:02:09 -06:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
exists() {
|
2022-11-27 11:04:53 -06:00
|
|
|
xrandr | grep ' connected' | grep -c "${1}"
|
2021-02-15 12:02:09 -06:00
|
|
|
}
|
|
|
|
|
2022-08-01 18:32:00 -05:00
|
|
|
bspc monitor -d 1 2 3 4 5 6 7 8 9
|
|
|
|
|
2022-11-27 11:04:53 -06:00
|
|
|
if [ "$(exists "HDMI-2")" -eq 1 ] && [ "$(exists "LVDS-1")" -eq 1 ]; then
|
2022-07-31 22:42:20 -05:00
|
|
|
printf "two"
|
|
|
|
xrandr --output HDMI-2 --right-of LVDS-1 --auto
|
|
|
|
xrandr --output VGA-1 --off --auto
|
2022-08-01 18:32:00 -05:00
|
|
|
bspc monitor LVDS-1 -d 1 2 3 4 5 6 7 8 9
|
|
|
|
bspc monitor HDMI-2 -d 1 2 3 4 5 6 7 8 9
|
2022-07-31 22:42:20 -05:00
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2023-01-15 16:50:01 -06:00
|
|
|
if [ "$(exists "HDMI-1")" -eq 1 ] && [ "$(exists "LVDS-1")" -eq 1 ]; then
|
|
|
|
printf "two"
|
|
|
|
xrandr --output HDMI-1 --right-of LVDS-1 --auto
|
|
|
|
xrandr --output VGA-1 --off --auto
|
|
|
|
bspc monitor LVDS-1 -d 1 2 3 4 5 6 7 8 9
|
|
|
|
bspc monitor HDMI-1 -d 1 2 3 4 5 6 7 8 9
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2022-08-01 18:32:00 -05:00
|
|
|
# default configuration's fine
|