dot_testing/builds/utils/sh/disp
2023-09-23 03:42:22 -05:00

18 lines
264 B
Bash
Executable File

#!/bin/sh
exists() {
xrandr | grep ' connected' | grep -c "${1}"
}
bspc monitor eDP-1 -d 1 2 3 4 5 6 7 8 9
if [ "$(exists "DP-1")" -gt 1 ]; then
printf "two"
bspc monitor DP-1 -s eDP-1
xrandr --output eDP-1 --off
exit 0
fi
# default configuration's fine