|
#!/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
|