From 28f9489d2e1b902f3e30f956fbd34a4bea8d9473 Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Sun, 6 Sep 2015 04:43:33 +0200 Subject: [PATCH] Resetting desktops on external screen on demand --- scripts/monsetup.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/monsetup.sh b/scripts/monsetup.sh index a742dfa..96f0429 100755 --- a/scripts/monsetup.sh +++ b/scripts/monsetup.sh @@ -8,6 +8,9 @@ if [ $# -lt 1 ]; then exit 1 fi +bspwm_reset_desktops() { + bspc monitor $EXTERN -d 1 2 3 4 5 6 7 8 9 +} bspwm_mv_win() { for wid in $(bspc query -W -m $EXTERN); do @@ -18,6 +21,8 @@ bspwm_mv_win() { bspwm_config_second() { if [ "$1" != "1" ]; then bspwm_mv_win + else + bspwm_reset_desktops fi }