The i3 FAQ has migrated to https://www.reddit.com/r/i3wm/. All content here is read-only.
Ask Your Question
2

Forcing windows as always floating

asked 2012-06-06 09:28:05 +0000

Is there a way to force specific windows to be always floating? I reckon some already do that by default (some configuration windows) and others don't.

One classic example here is maybe nautilus "File Operations" window, which shows up when you are copying or moving files in your file system.

The xprop command returns:

WM_CLASS(STRING) = "file_progress", "Nautilus"

To make it be floating by default, I append to the .i3/config file:

for_window [class="Nautilus" instance="file_progress"] floating enable

But, is there any other way? I was wondering what would be the criteria to decide whether to display it floating or not. Meaning, I would not want to keep doing this to every window that wrongfully (well, maybe this is just my perspective) goes tiled instead of floated.

Any ideas?

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
2

answered 2012-06-06 09:39:47 +0000

Michael gravatar image

Your way is the correct and only way.

In case you feel that this window should not ever be tiling (in your case it seems to be a popup window indicating some progress), you could file a bugreport for the program you are using and tell them to set the correct window type on that window.

i3 sets dialog, utility, toolbar and splash windows to floating.

edit flag offensive delete link more

Comments

Yeah, I had the feeling the trouble would be in the application's side. It makes total sense to base the floating under these types of windows. Nice! I will try to push this to applications and see what happens! :-) Cheers,

bruno.braga gravatar imagebruno.braga ( 2012-06-06 09:54:09 +0000 )edit
0

answered 2013-03-12 14:04:10 +0000

visit gravatar image

If you want to float everything by default, you can set it like this:

# force floating for all new windows
for_window [class="[.]*"] floating enable

I know, this is against the principles of a tiling WM. But some guys may like to manually add their windows to the tree.

edit flag offensive delete link more
0

answered 2012-11-29 19:49:54 +0000

I'm not sure about the specific Nautilus window you're talking about, (I usually use Chromium) but I find this rule helpful:

# browser pop-ups
for_window [window_role="pop-up"] floating enable
edit flag offensive delete link more

Comments

Great tip!

bruno.braga gravatar imagebruno.braga ( 2012-12-14 22:31:11 +0000 )edit

Question Tools

1 follower

Stats

Asked: 2012-06-06 09:28:05 +0000

Seen: 13,609 times

Last updated: Mar 12 '13