Only floating windows with window decoration

Hi, 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 ... Thanks! Nathan

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
--
Andrew Antle

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
Hi, I can not find what I want on that page. Can you give me another hint? Regards, Nathan

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

Hi, I think it is not 100% clear what I mean (or I am really missing something). I know how do add a floating layout and I also know how to put a window into floating. What I want is, that as soon as I put a window into floating, a window decoration is added to it and as soons as I remove a window from floating, the window decaration is removed. On Fri, Oct 02, 2009 at 09:49:51AM -0400, Andrew Antle wrote:
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
http://antlechrist.org ############################################## ## <TMR> : Can't we just agree to disagree? ## ## <TBM> : I disagree! ## ## <Aq> : And you're wrong! ## ############################################## _______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
-- _________________________________________ / Sometimes I think the surest sign that \ | intelligent life exists elsewhere in | | the universe is that none of it has | \ tried to contact us. -- Calvin / ----------------------------------------- \ ,__, \ (oo)____ (__) )\ ||--|| *

On Fri, Oct 02, 2009 at 04:44:47PM +0200, Nathan Huesken wrote:
Hi,
I think it is not 100% clear what I mean (or I am really missing something).
I know how do add a floating layout and I also know how to put a window into floating.
What I want is, that as soon as I put a window into floating, a window decoration is added to it and as soons as I remove a window from floating, the window decaration is removed.
On Fri, Oct 02, 2009 at 09:49:51AM -0400, Andrew Antle wrote:
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: ...
Oh, I misunderstood you. Sorry, but I don't know how to do what you are
asking...
--
Andrew Antle

Nathan Huesken
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 ...
This isn't possible with anything currently in XMonad: the way floating windows are currently handled means that they aren't affected by layouthooks, and all the current decoration code is done by these hooks. Having said that, this would be a really cool feature.

Hi, I do not know xmonad nor haskell. But what would you need? - A manage hook which adds deocaration when a new window is floating - All key bindings/actions that make a window float must have add a function "add decoration" - All key bindings/actions that stop a window from floating must have add a function "remove decoration" That should be possible, should it not? Regards, Nathan On Fri, Oct 02, 2009 at 07:30:30PM -0600, mail@justinbogner.com wrote:
Nathan Huesken
writes: 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 ...
This isn't possible with anything currently in XMonad: the way floating windows are currently handled means that they aren't affected by layouthooks, and all the current decoration code is done by these hooks. Having said that, this would be a really cool feature.
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
-- _________________________________________ / "Summer is butter on your chin and \ \ corn mush between every tooth." -Calvin / ----------------------------------------- \ ,__, \ (oo)____ (__) )\ ||--|| *
participants (3)
-
Andrew Antle
-
mail@justinbogner.com
-
Nathan Huesken