
On Fri, Oct 02, 2009 at 08:29:18AM +0200, Nathan Huesken wrote:
On Thu, Oct 01, 2009 at 06:06:45PM -0400, Andrew Antle wrote:
On Thu, Oct 01, 2009 at 09:51:36PM +0200, Nathan Huesken wrote:
Can I somehow configure xmonad, so that only floating windows have window decoaration? By this I mean a titlebar, which can be used to drag them around ...
I'd take a look at XMonadContrib/XMonad/Layout/SimpleFloat.hs
I can not find what I want on that page. Can you give me another hint?
Hi Nathan,
Do you have the source tree for XMonadContrib[1]? In the SimpleFloat.hs
file there is a good example from Andrea on how to add that layout to your
xmonad.hs:
----
-- $usage
-- You can use this module with the following in your
-- @~\/.xmonad\/xmonad.hs@:
--
-- > import XMonad.Layout.SimpleFloat
--
-- Then edit your @layoutHook@ by adding the SimpleFloat layout:
--
-- > myLayouts = simpleFloat ||| Full ||| etc..
-- > main = xmonad defaultConfig { layoutHook = myLayouts }
--
-- For more detailed instructions on editing the layoutHook see:
--
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
-- | A simple floating layout where every window is placed according
-- to the window's initial attributes.
--
-- This version is decorated with the 'SimpleDecoration' style.
----
Or you can just specify which applications you want to float, then drag
or resize them via *Mod+Left-Click* or *Mod+Right-Click* respectively:
----
manageHook' :: ManageHook
manageHook' = manageDocks <+> customManageHook
<+> manageHook defaultConfig
...
customManageHook = composeAll
[ className =? "Gimp" --> doFloat
, className =? "VirtualBox" --> doFloat
]
...
main = do
xmonad $ defaultConfig
{ workspaces = workspaces'
...
, manageHook = manageHook'
}
----
[1] http://hackage.haskell.org/packages/archive/xmonad-contrib/0.8.1/xmonad-cont...
or
darcs get http://code.haskell.org/xmonad
darcs get http://code.haskell.org/XMonadContrib
for devel.
HTH,
--
Andrew Antle