You are not logged in.

#1 2010-06-06 21:07:15

hanlin
Member
Registered: 2010-05-14
Posts: 21

xmonad tile window size

When Alt-Left Clicking to float a window, can I specify the size of the window? Right now, as soon as it's untiled, it becomes the size of the master window, and I would like it to be a specified size.

Offline

#2 2010-06-07 11:10:56

paldepind
Member
From: Århus, Denmark
Registered: 2010-02-17
Posts: 141

Re: xmonad tile window size

You can resize the window with your mouse using mod+right click.

Offline

#3 2010-06-07 16:18:00

roy_hu
Member
Registered: 2009-10-29
Posts: 85

Re: xmonad tile window size

XMonad is extremely programmable. I came up with the following function, which is to be bound to your mouse:

resizeAndMove w =  withDisplay $ \d -> do
               focus w
               io $ resizeWindow d w 800 600
               float w
               mouseMoveWindow w
               windows W.shiftMaster

Offline

#4 2010-06-08 02:10:39

hanlin
Member
Registered: 2010-05-14
Posts: 21

Re: xmonad tile window size

Thanks roy_hu. That's exactly what I wanted.

Offline

Board footer

Powered by FluxBB