dot_testing/builds/utils/sh/disp

22 lines
461 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-10-30 16:15:31 -05:00
if [ "$(exists "HDMI-1")" -gt 1 ] && [ "$(hostname)" = "mainsail" ]; then
printf "mainsail selected\nHDMI-1 detected only, doing that\n"
bspc monitor HDMI-1 -d 1 2 3 4 5 6 7 8 9
fi