dot_testing/builds/utils/sh/disp

18 lines
264 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-09-23 03:42:22 -05:00
bspc monitor eDP-1 -d 1 2 3 4 5 6 7 8 9
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-01-15 16:50:01 -06:00
2022-08-01 18:32:00 -05:00
# default configuration's fine