fix desktop graphics drivers and other things idk
This commit is contained in:
15
homes/laptop/bspwm/host.sh
Normal file
15
homes/laptop/bspwm/host.sh
Normal file
@ -0,0 +1,15 @@
|
||||
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)&
|
Reference in New Issue
Block a user