diff options
author | Sébastien Dailly <sebastien@dailly.me> | 2021-12-28 10:49:08 +0100 |
---|---|---|
committer | Sébastien Dailly <sebastien@dailly.me> | 2021-12-28 10:49:08 +0100 |
commit | 8ce590c46ce9c80d560c9e1dfc59ad52ba7a652f (patch) | |
tree | b52e4c3f8d33d6709cee882d902d30abe0faacda /sxhkd/scripts/sxhkd/show.sh | |
parent | 04d3e738b108fddcf2bb0cc9dac24da47ddbe672 (diff) |
Update bspwm scripts
Diffstat (limited to 'sxhkd/scripts/sxhkd/show.sh')
-rwxr-xr-x | sxhkd/scripts/sxhkd/show.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sxhkd/scripts/sxhkd/show.sh b/sxhkd/scripts/sxhkd/show.sh index 4f83617..b87067c 100755 --- a/sxhkd/scripts/sxhkd/show.sh +++ b/sxhkd/scripts/sxhkd/show.sh @@ -1,3 +1,7 @@ #!/bin/sh -bspc query -D --names | grep -q "$1" || bspc monitor -a "$1" -bspc desktop -f "$1" + +# If the required desktop does not exists, create it +bspc query --desktops --names | grep --quiet "$1" || bspc monitor --add-desktops "$1" + +# Switch to the desired desktop +bspc desktop --focus "$1" |