How to get the next window created set to floating in BSPWM
I've written before about my usage of the BSPWM tiling window manager.
One thing I've recently been looking at doing setting up a "scratch pad" style setup to launch my local SQL workflow so I can query my local instance of data from dependency-management-data, especially for ad-hoc requests at work.
To do this, I wanted to:
- Create a new terminal
- Open up a pre-written base for SQL queries
- Make that terminal window floating over all other windows
Via this comment on Reddit I found that you can create a bspc rule
for the next created window only, via:
bspc rule -a '*' # ... arguments here
So in this case, as we want to make sure that we create the next window as a floating window, we would run:
bspc rule -a '*' -o state=floating
Then, the next created window would be floating.