dot_testing/builds/utils/sh/disp

25 lines
512 B
Plaintext
Raw Normal View History

2021-02-15 12:02:09 -06:00
#!/bin/sh
exists() {
xrandr | grep ' connected' | grep -c "${1}"
2021-02-15 12:02:09 -06:00
}
2023-10-30 16:15:31 -05:00
if [ ! "$(hostname)" = "mainsail" ]; then
bspc monitor eDP-1 -d 1 2 3 4 5 6 7 8 9
fi
2022-08-01 18:32:00 -05:00
2023-09-23 03:42:22 -05:00
if [ "$(exists "DP-1")" -gt 1 ]; then
printf "two"
2023-09-23 03:42:22 -05:00
bspc monitor DP-1 -s eDP-1
xrandr --output eDP-1 --off
exit 0
fi
2023-11-21 11:09:16 -06:00
if [ "$(hostname)" = "mainsail" ]; then
# this is a tower, so there's only one configuration
printf "mainsail detected\n"
xrandr --output VGA-1 --left-of HDMI-1
bspc monitor VGA-1 -d 1 3 5 7 9
bspc monitor HDMI-1 -d 2 4 6 8 0
2023-10-30 16:15:31 -05:00
fi