Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spawn new windows as floating #428

Closed
fbt opened this issue Mar 22, 2016 · 10 comments

Comments

Projects
None yet
6 participants
@fbt
Copy link

commented Mar 22, 2016

There used to be a flag you could set for a desktop to spawn all new windows as floating. Now it's gone. Is there another way to do this? I really, really liked that feature.

@fbt

This comment has been minimized.

Copy link
Author

commented Mar 22, 2016

nvm figured it out with the help of the IRC channel.

@fbt fbt closed this Mar 22, 2016

@fbt

This comment has been minimized.

Copy link
Author

commented Mar 22, 2016

Nope, I was too hasty.

@fbt fbt reopened this Mar 22, 2016

@baskerville

This comment has been minimized.

Copy link
Owner

commented Mar 22, 2016

#! /bin/bash

FLOATING_DESKTOP_ID=$(bspc query -D -d '^9')

bspc subscribe node_manage | while read -a msg ; do
    desk_id=${msg[2]}
    wid=${msg[3]}
    [ "$FLOATING_DESKTOP_ID" = "$desk_id" ] && bspc node "$wid" -t floating
done
@fbt

This comment has been minimized.

Copy link
Author

commented Mar 22, 2016

Hmm. Interesting. So the internal mechanism is truly gone huh? Thx, I'll probably write a daemon doing such things.

@Alkeryn

This comment has been minimized.

Copy link

commented Aug 31, 2017

Is it possible to make a shortcut to switch floating / tilling mode
such as windows open in tilling, and by doing said shortcut they now open in floating until the shortcut is pressed again ?
Also sorry for the up

@emugel

This comment has been minimized.

Copy link

commented Oct 17, 2018

Yep more or less same question as above.

I'd like to have one shortcut to create a terminal that appears in tilling mode, and one special shortcut to have a terminal to appear in floating mode.

@Ashe

This comment has been minimized.

Copy link

commented Nov 8, 2018

I think @emugel has a good idea for a feature. While I haven't contributed at all I too want this feature and I might have a play to see if I can make a more accessible method of doing this?

@baskerville

This comment has been minimized.

Copy link
Owner

commented Nov 8, 2018

This question was already asked in #550.

@reaper8055

This comment has been minimized.

Copy link

commented Jan 6, 2019

bspc subscribe node_manage | while read -a msg ; do

node_manage throws 'invalid argument'
I guess, it's changed to 'node', and hence the updated script would be
bspc subscribe node | while read -a msg ; do

Kindly, correct me if I am wrong.

@Ashe

This comment has been minimized.

Copy link

commented Jan 15, 2019

I have a script which I call execute the program I want to float:

#!/bin/bash
# Open a command in float mode
bspc rule -a \* -o state=floating && $@

I'd use it like so: bspwmfloat urxvt -e ncmpcpp which opens a terminal with my music player in a floating window. I do this with firefox as well as various other terminal commands. I hope this helps someone!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.