configfiles/scripts/monitor_switch.sh

16 lines
269 B
Bash
Raw Normal View History

2015-05-29 21:08:06 +02:00
#!/bin/bash
cd $(dirname $0)
EXTERN=VGA1
if [ -z "$(xrandr -q | grep "$EXTERN connected")" ]; then
bspc query -W -m VGA1 | while read $wid; do
bspc window $wid -m "LVDS1:^1"
done
fi
2015-05-29 21:08:06 +02:00
./prepare_monitors.sh
nitrogen --restore &
~/.config/bspwm/bspwmrc