From d8af6f28bc32839f28da40904b99bd09444a2e5b Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Fri, 26 Jun 2015 08:47:39 +0200 Subject: [PATCH] Fenster werden nun vor dem Trennen von VGA1 auf LVDS1 verschoben --- scripts/monitor_switch.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/monitor_switch.sh b/scripts/monitor_switch.sh index d3bec85..6ecfb04 100755 --- a/scripts/monitor_switch.sh +++ b/scripts/monitor_switch.sh @@ -2,6 +2,14 @@ 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 + done +fi + ./prepare_monitors.sh nitrogen --restore & ~/.config/bspwm/bspwmrc