Resetting desktops on external screen on demand

This commit is contained in:
madmaurice 2015-09-06 04:43:33 +02:00
parent 5d4dd1b565
commit 28f9489d2e

View file

@ -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
}