From a5cc3428e2b2e824130606b5b47f2c598c96cf26 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Mon, 30 Dec 2019 13:48:52 +0100 Subject: [PATCH] Set bspwm multi-monitor workspace names --- .config/bspwm/bspwmrc | 3 +-- .scripts/wm/desktops.sh | 7 +++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100755 .scripts/wm/desktops.sh 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