From omari at smileystation.com Mon Feb 1 13:41:41 2010 From: omari at smileystation.com (Omari Norman) Date: Mon Feb 1 13:14:03 2010 Subject: [xmonad] make DynamicLog prefix workspace names with number In-Reply-To: <470538.82872.qm@web111807.mail.gq1.yahoo.com> References: <470538.82872.qm@web111807.mail.gq1.yahoo.com> Message-ID: <20100201184141.GA12263@barry.normanonet.net> Hi Lara, > Following up on this question, is it possible to have the log > automatically set the name of the workspace to the programs running in > it? Can't help you there :( I'm rudimentary with xmonad and haskell... 2010/1/30 Omari Norman : > Is there any easy way to get DynamicLog to prefix the names of > workspaces with numbers? I cobbled together something rudimentary in zsh. Surely this could be done in Haskell using the ppOutput function in dynamicLog, and maybe when I have a few minutes to mess around with Haskell I'll do that. This is very primitive--workspace names can't have spaces--but it does (currently) work, in case someone else finds it handy. -------------- next part -------------- #!/bin/zsh # xmobar_with_ws_numbers - takes output from xmonad intended for # xmobar. Changes the workspaces portion, adding workspace numbers. # Then, pipes the output to xmobar. # # Assumes there are only alphanumeric characters [a-zA-Z0-9] in # workspace names, and it will likely choke on anything that's not # ASCII. Thus you can't have spaces or symbols in workspace names. # Given a workspace number on $1 and the entire workspace text on # $2, echoes the workspace text with a workspace number added. # Takes into account the format of xmobar input, which has xml-like # tags to indicate colors. addNumber() { if echo $2 | grep -q '<'; then echo -n $2 | sed -r 's/>([a-zA-Z0-9]*)'$1':\1 References: <70d6e6e41002010547w4bb4a187v23836f9944298da7@mail.gmail.com> Message-ID: Thanks Quentin, I've got sublayout working with Adam's help at #xmonad. I've noticed this "limitation" you said about tabbed being the outer layout, but it's no big deal. The feature I really missed was a way to auto-group some windows, by matching them in the manageHook or something like X.L.ComboP does. Henrique G. Abreu On Mon, Feb 1, 2010 at 11:47, Quentin Moser wrote: > Hi, > > SubLayouts is probably closest to what you want. You can use a layout such as > >> subLayout [] row $ tall ||| Mirror tall ||| Full >> ? where row = Mirror $ Tall 0 0 0 >> ? ? ? ? tall = Tall 1 (3/100) 0.5 > > Basically, this will manage your windows according to the second > layout (tall ||| ...), but allow you to put several windows together > into a single "group", inside of which they will be placed according > to the first layout (row). > > Something you can not do, however, is have a tabbed layout as your > "main" layout, as in your example. The way XMonad.Layout.Decoration > handles tabbing simply doesn't work when all your windows aren't > stacked exactly on top of each other. > > Tabbing the windows inside a sub-group works, though, and SubLayout > defines a "subTabbed" modifier precisely for that. > > > On Wed, Jan 27, 2010 at 4:05 AM, Henrique G. Abreu wrote: >> Hi all, >> >> I want to set up a layout that treats two matched windows as one, like >> always side-by-side. >> I also want to be able to switch the "master" layout, like: Tall .. >> ||| Mirror Tall .. ||| simpleTabbed >> and keep this pair of windows always together side-by-side in this layouts. >> Of course I will have other windows involved in this layouts and >> that's the point. >> >> I've tried sublayout but I found it to hard to set. >> Also tried ComboP combineTwoP, which comes close to what I want but >> has sad limitations >> like "reserving" the area to the 2nd layout and not being able to >> switch the ruling layout. >> Does it make sense or I'm wanting something too odd? >> >> Thanks, >> Henrique G. Abreu >> _______________________________________________ >> xmonad mailing list >> xmonad@haskell.org >> http://www.haskell.org/mailman/listinfo/xmonad >> > From ff0000.it at gmail.com Mon Feb 1 17:13:59 2010 From: ff0000.it at gmail.com (Alessandro Massignan) Date: Mon Feb 1 16:45:56 2010 Subject: [xmonad] focus handling Message-ID: <162fabca1002011413r1e0968a0g18b8f73382b43395@mail.gmail.com> Hi all, i've a workspace for pidgin/skype and i wonder if their roster window should avoid focus switching (focusUp and focusDown) letting me to focus only the other windows (chats, options, ...). Is there a way to prevent a window being focused (eg. by classname, role, ...)? thanks to all, ff0000 From laramichaels1978 at yahoo.com Mon Feb 1 17:41:29 2010 From: laramichaels1978 at yahoo.com (Lara Michaels) Date: Mon Feb 1 17:13:03 2010 Subject: [xmonad] make DynamicLog prefix workspace names with number In-Reply-To: <20100201184141.GA12263@barry.normanonet.net> Message-ID: <900136.22870.qm@web111807.mail.gq1.yahoo.com> Hi Omari, Many thanks, I will try it out! Ivan, that is a good question. One could concatenate the progam names or something... : ) cheers l --- On Mon, 2/1/10, Omari Norman wrote: > From: Omari Norman > Subject: Re: [xmonad] make DynamicLog prefix workspace names with number > To: xmonad@haskell.org > Date: Monday, February 1, 2010, 6:41 PM > Hi Lara, > > > Following up on this question, is it possible to have > the log > > automatically set the name of the workspace to the > programs running in > > it? > > Can't help you there :( I'm rudimentary with xmonad and > haskell... > > 2010/1/30 Omari Norman : > > > Is there any easy way to get DynamicLog to prefix the > names of > > workspaces with numbers? > > I cobbled together something rudimentary in zsh. Surely > this could be > done in Haskell using the ppOutput function in dynamicLog, > and maybe > when I have a few minutes to mess around with Haskell I'll > do that. This > is very primitive--workspace names can't have spaces--but > it does > (currently) work, in case someone else finds it handy. > > > -----Inline Attachment Follows----- > > _______________________________________________ > xmonad mailing list > xmonad@haskell.org > http://www.haskell.org/mailman/listinfo/xmonad > From hgabreu at gmail.com Mon Feb 1 21:48:04 2010 From: hgabreu at gmail.com (Henrique G. Abreu) Date: Mon Feb 1 21:19:52 2010 Subject: [xmonad] focus handling In-Reply-To: <162fabca1002011413r1e0968a0g18b8f73382b43395@mail.gmail.com> References: <162fabca1002011413r1e0968a0g18b8f73382b43395@mail.gmail.com> Message-ID: I think you're looking for XMonad.Layout.BoringWindows Henrique G. Abreu On Mon, Feb 1, 2010 at 20:13, Alessandro Massignan wrote: > Hi all, > > i've a workspace for pidgin/skype and i wonder if their roster window should > avoid focus switching (focusUp and focusDown) letting me to focus only the > other windows (chats, options, ...). > Is there a way to prevent a window being focused (eg. by classname, role, > ...)? > > thanks to all, > ff0000 > _______________________________________________ > xmonad mailing list > xmonad@haskell.org > http://www.haskell.org/mailman/listinfo/xmonad > From vogt.adam at gmail.com Tue Feb 2 00:36:29 2010 From: vogt.adam at gmail.com (Adam Vogt) Date: Tue Feb 2 00:08:20 2010 Subject: [xmonad] focus handling In-Reply-To: <162fabca1002011413r1e0968a0g18b8f73382b43395@mail.gmail.com> References: <162fabca1002011413r1e0968a0g18b8f73382b43395@mail.gmail.com> Message-ID: <20100202053629.GA9223@smuckers.phub.net.cable.rogers.com> * On Monday, February 01 2010, Alessandro Massignan wrote: >Hi all, > >i've a workspace for pidgin/skype and i wonder if their roster window should >avoid focus switching (focusUp and focusDown) letting me to focus only the >other windows (chats, options, ...). >Is there a way to prevent a window being focused (eg. by classname, role, >...)? > >thanks to all, >ff0000 This can be accomplished with XMonad.Layout.BoringWindows [1]. While the module doesn't export functionality to directly set target windows as boring, you can work around that in your config with something like: ] import XMonad ] import qualified XMonad.StackSet as W ] import XMonad.Layout.BoringWindows ] ] -- | Variant of 'markBoring', if 'XMonad.Layout.BoringWindows.IsBoring' ] -- was exported we could write much shorter: ] -- > markBoring' = sendMessage . IsBoring ] markBoring' :: Window -> X () ] markBoring' w = do ] st@XState { windowset = ws } <- get ] env <- ask ] (_,st') <- io $ runX env ] st{ windowset = W.insertUp w ws } ] markBoring ] ] -- this should encourage consideration of some alternative to the built-in ] -- records: all this does is set the current layout in st to the one gotten ] -- from st' ] put $ st{ windowset = ] ws{ W.current = ] (W.current ws){ W.workspace = ] (W.workspace $ W.current ws){ W.layout = ] W.layout $ W.workspace ] $ W.current $ windowset st' ] }}}} ] ] doBoring :: ManageHook ] doBoring = do ] w <- ask ] liftX $ markBoring' w ] idHook Then use doBoring as other ManageHooks. This also requires that you modify your layout and add some keybindings as described in the BoringWindows documentation. However, if you reset your layout (mod-shift-space), then you would have to run that manageHook over all the windows present in your workspace to get your correct behavior back. Ex. you could use the following rerunMH function to run a managehook (the one you defined using doBoring) on all the windows in your current workspace: ] rerunMH :: ManageHook -> X () ] rerunMH mhook = withWindowSet $ mapM_ (runQuery mhook) . W.index This might make sense to run after resetting layouts (mod-shift-space) as this fragment that fits in some keybindings does (for a specific managehook): ] ,((modm .|. shiftMask,xK_space), ] do { setLayout . Layout . layoutHook =<< ask ] ; rerunMH (className =? "foo" --> doBoring) ] } ] ) Hope this helps, -- Adam [1] http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Layout-BoringWindows.html From ff0000.it at gmail.com Tue Feb 2 04:30:37 2010 From: ff0000.it at gmail.com (Alessandro Massignan) Date: Tue Feb 2 04:02:30 2010 Subject: [xmonad] focus handling In-Reply-To: <20100202053629.GA9223@smuckers.phub.net.cable.rogers.com> References: <162fabca1002011413r1e0968a0g18b8f73382b43395@mail.gmail.com> <20100202053629.GA9223@smuckers.phub.net.cable.rogers.com> Message-ID: <162fabca1002020130w578cae45s1e64aba339bc6e86@mail.gmail.com> Thanks Henrique and Adam, helps deep in Hask-Hell :-) Ok, i'm still a total newbie and the code snippet looks a bit weird to my eyes, but this encourage me to go on! :-) I'll give a try to BoringWindows and i think i'll succeed, because XMonad is a divine gift and, finally, i come to the definitive WM ;-) Thanks again! ff0000 From damian.only at gmail.com Tue Feb 2 06:04:36 2010 From: damian.only at gmail.com (Damian) Date: Tue Feb 2 05:36:28 2010 Subject: [xmonad] Gaps between windows Message-ID: <47a330c51002020304uec4b0dbidddd6ec5f142cace@mail.gmail.com> (or in winter I need some color...) Hello, I want to configure xmonad so that it leaves some amount of space between windows. Here is a mockup: http://yfrog.com/1glayoutiwantp The closest layout I could find is XMonad.Layout.Gaps, but it does not leave space between windows, it introduces a gap with regard to the screen. Any ideas about how to get this behaviour? Thanks in advance, Damian. From hgabreu at gmail.com Tue Feb 2 06:47:25 2010 From: hgabreu at gmail.com (Henrique G. Abreu) Date: Tue Feb 2 06:19:13 2010 Subject: [xmonad] Gaps between windows In-Reply-To: <47a330c51002020304uec4b0dbidddd6ec5f142cace@mail.gmail.com> References: <47a330c51002020304uec4b0dbidddd6ec5f142cace@mail.gmail.com> Message-ID: I think your looking for import XMonad.Layout.Spacing http://www.xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Layout-Spacing.html Henrique G. Abreu On Tue, Feb 2, 2010 at 09:04, Damian wrote: > (or in winter I need some color...) > > Hello, > > I want to configure xmonad so that it leaves some amount of space > between windows. Here is a mockup: > ? ?http://yfrog.com/1glayoutiwantp > > The closest layout I could find is XMonad.Layout.Gaps, but it does not > leave space between windows, it introduces a gap with regard to the > screen. > > Any ideas about how to get this behaviour? > > Thanks in advance, > Damian. > _______________________________________________ > xmonad mailing list > xmonad@haskell.org > http://www.haskell.org/mailman/listinfo/xmonad > From codesite-noreply at google.com Tue Feb 2 07:06:44 2010 From: codesite-noreply at google.com (codesite-noreply@google.com) Date: Tue Feb 2 06:38:16 2010 Subject: [xmonad] Issue 369 in xmonad: Html5 video fullscreen window doesn't stay in fullscreen mode Message-ID: <0-3425899027203913298-13040023232612925621-codesite-noreply=google.com@googlecode.com> Status: New Owner: ---- New issue 369 by mceier: Html5 video fullscreen window doesn't stay in fullscreen mode http://code.google.com/p/xmonad/issues/detail?id=369 What steps will reproduce the problem? 1. open http://diveintohtml5.org/video.html#movie in firefox 3.6 ( browser that supports html5