2021-02-15 12:02:09 -06:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
exists() {
|
2022-11-27 11:04:53 -06:00
|
|
|
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
|
2022-07-31 22:42:20 -05:00
|
|
|
printf "two"
|
2023-09-23 03:42:22 -05:00
|
|
|
bspc monitor DP-1 -s eDP-1
|
|
|
|
xrandr --output eDP-1 --off
|
2022-07-31 22:42:20 -05:00
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2023-01-15 16:50:01 -06:00
|
|
|
|
2022-08-01 18:32:00 -05:00
|
|
|
# default configuration's fine
|