diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc index d691085..0758861 100755 --- a/.config/bspwm/bspwmrc +++ b/.config/bspwm/bspwmrc @@ -31,8 +31,7 @@ bspc config pointer_modifier mod4 #--- Desktops ---# # Set desktops -bspc monitor -d "$WS1" "$WS2" "$WS3" "$WS4" "$WS5" \ - "$WS6" "$WS7" "$WS8" "$WS9" "$WS0" +$HOME/.scripts/wm/desktops.sh # Open program on specific desktop bspc rule -a Firefox desktop="^$WS1" diff --git a/.scripts/wm/desktops.sh b/.scripts/wm/desktops.sh new file mode 100755 index 0000000..e4d64b9 --- /dev/null +++ b/.scripts/wm/desktops.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +for m in `bspc query -M`; do + bspc monitor $m -d \ + "$WS1" "$WS2" "$WS3" "$WS4" "$WS5" \ + "$WS6" "$WS7" "$WS8" "$WS9" "$WS0" +done