16 lines
491 B
Bash
16 lines
491 B
Bash
INTEGRATED="eDP-1"
|
|
HDMI="HDMI-1"
|
|
if xrandr | grep "$HDMI connected" && cat /proc/acpi/button/lid/LID/state | grep "closed"; then
|
|
bash ~/.screenlayout/b.sh
|
|
bspc monitor $HDMI -d 1 2 3 4 5
|
|
bspc monitor $INTEGRATED -r
|
|
elif xrandr | grep "$HDMI connected";then
|
|
bash ~/.screenlayout/a.sh
|
|
bspc monitor $INTEGRATED -d 1 2 3 4
|
|
bspc monitor $HDMI -d A B
|
|
else
|
|
bspc monitor -d 1 2 3 4 5
|
|
xrandr -r 60
|
|
fi
|
|
pgrep activate-linux >/dev/null || (sleep 2;activate-linux -c 1-1-1-0.7 -V 50 -H 70 -d)&
|