You are not logged in.

#1 2012-05-15 23:13:50

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

"Re-tiling" a floating window in DWM

Once a window is floating in DWM, is there any way to force it back into tiling mode? The tutorial doesn't seem to cover this; and switching the window's mode with alt+spacebar doesn't actually make it tiled again. Am I missing something, or is this a bug and/or feature? Or perhaps an option configured at compile time?

Offline

#2 2012-05-15 23:53:19

sankeytm
Member
From: California
Registered: 2012-03-05
Posts: 28

Re: "Re-tiling" a floating window in DWM

See man dwm:

Mod1-Shift-space
       Toggle focused window between tiled and floating state.
[...]
Mod1-Button2
       Toggles focused window between floating and tiled state.

Edit: lol they flipped "floating" and "tiled" for no apparent reason.

Last edited by sankeytm (2012-05-16 00:00:59)

Offline

#3 2012-05-16 00:11:16

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: "Re-tiling" a floating window in DWM

Ah I see, needs the third mouse button. Wonder why that's not a keybinding by default. Anyway, thank you very much.

Edit: umm yeah, that doesn't work at all. Guess I'll be sticking with XMonad for now, thank you Alt+T.

Last edited by Gullible Jones (2012-05-16 00:13:54)

Offline

#4 2012-05-16 00:21:59

sankeytm
Member
From: California
Registered: 2012-03-05
Posts: 28

Re: "Re-tiling" a floating window in DWM

Gullible Jones wrote:

Ah I see, needs the third mouse button. Wonder why that's not a keybinding by default. Anyway, thank you very much.

Edit: umm yeah, that doesn't work at all. Guess I'll be sticking with XMonad for now, thank you Alt+T.

I edited my post to include the default keybinding. It's Mod1-Shift-space.

Offline

#5 2012-05-16 00:33:51

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: "Re-tiling" a floating window in DWM

Both work well for me; thanks sankeytm. Also easy to find and modify in config.h:

{ MODKEY|ShiftMask,             XK_space,  togglefloating, {0} },

Last edited by 2ManyDogs (2012-05-16 00:35:52)

Offline

#6 2012-05-16 01:47:14

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: "Re-tiling" a floating window in DWM

OMG. Thank you! And sorry I missed that. Goodbye XMonad!

Offline

Board footer

Powered by FluxBB