add bspc support
This commit is contained in:
parent
014ed77574
commit
d454a801de
15
scripts/disp
15
scripts/disp
|
@ -7,23 +7,28 @@ exists() {
|
||||||
# usual setup: thinkpad x220 on dock connected to external
|
# usual setup: thinkpad x220 on dock connected to external
|
||||||
# monitor
|
# monitor
|
||||||
|
|
||||||
[ $(exists "HDMI2") -gt 0 ] && \
|
[ $(exists "HDMI2") -eq 1 ] && \
|
||||||
[ $(exists "LVDS1") -gt 0 ] && \
|
[ $(exists "LVDS1") -eq 1 ] && \
|
||||||
xrandr --output LVDS1 --below HDMI2 --auto && \
|
xrandr --output LVDS1 --below HDMI2 --auto && \
|
||||||
|
bspc monitor LVDS1 I II III IV V && \
|
||||||
|
bspc monitor HDMI2 VI VII VIII IX X && \
|
||||||
exit 0 || exit 1
|
exit 0 || exit 1
|
||||||
|
|
||||||
# thinkpad x220 connected to display on local port
|
# thinkpad x220 connected to display on local port
|
||||||
|
|
||||||
[ $(exists "HDMI1") -gt 0 ] && \
|
[ $(exists "HDMI1") -eq 1 ] && \
|
||||||
[ $(exists "LVDS1") -gt 0 ] && \
|
[ $(exists "LVDS1") -eq 1 ] && \
|
||||||
xrandr --output LVDS1 --below HDMI1 --auto && \
|
xrandr --output LVDS1 --below HDMI1 --auto && \
|
||||||
|
bspc monitor LVDS1 I II III IV V && \
|
||||||
|
bspc monitor HDMI1 VI VII VIII IX X && \
|
||||||
exit 0 || exit 1
|
exit 0 || exit 1
|
||||||
|
|
||||||
# only the thinkpad
|
# only the thinkpad
|
||||||
|
|
||||||
[ $(exists "HDMI2") -eq 0 ] && \
|
[ $(exists "HDMI2") -eq 0 ] && \
|
||||||
[ $(exists "LVDS1") -gt 0 ] && \
|
[ $(exists "LVDS1") -eq 1 ] && \
|
||||||
xrandr --output HDMI2 --off && \
|
xrandr --output HDMI2 --off && \
|
||||||
|
bspc monitor -d I II III IV V VI VII VIII IX X && \
|
||||||
exit 0 || exit 1
|
exit 0 || exit 1
|
||||||
|
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in New Issue