dotfiles/bspwm/floating-desktops.sh

16 lines
332 B
Bash
Raw Normal View History

2020-08-01 12:05:15 +00:00
#!/bin/sh
# change the desktop number here
FD9=$(bspc query -D -d '^9')
FD8=$(bspc query -D -d '^9')
FD7=$(bspc query -D -d '^9')
bspc subscribe node_add | while read msg ; do
desk_id=${msg[2]}
wid=${msg[4]}
for i in $FD7 $FD8 $FD9
do
[ "$i" = "$desk_id" ] && bspc node "$wid" -t floating
done
done