codesite | 1 Feb 20:53
Picon
Favicon

Re: Issue 393 in xmonad: XMonad.Prompt.Shell should use user-defined searchPredicate


Comment #2 on issue 393 by dunric...@...: XMonad.Prompt.Shell
should  
use user-defined searchPredicate
http://code.google.com/p/xmonad/issues/detail?id=393

Hi,

I just fixed (at least for me) the issue shellPrompt ignores  
searchPredicate field of XPConfig record.
After applying my patch, you can now create/combine whatever function you  
want and it will by used at filtering of shell commands completion.

Just set searchPredicate field and pass it to shellPrompt.
Of my xmonad.hs config:
import qualified Data.List as L
import Data.Char
...
    , ((myModMask, xK_x),     shellPrompt defaultXPConfig
                     {
                       -- match a substring anywhere within and ignore case
                       searchPredicate = L.isInfixOf . (map toLower)
                       ...
                     }

Patch created for xmonad-contrib ver. 0.10

Take care

:-)
(Continue reading)

Bas van Dijk | 2 Feb 12:30
Picon
Gravatar

xmonad.org down

xmonad.org seems to be down:

http://www.downforeveryoneorjustme.com/xmonad.org

Bas

Norbert Zeh | 4 Feb 20:09
Picon
Picon
Favicon

Toggle window decoration

Hi folks,

I'm currently experimenting with using window decorations (NoFrillsDecoration at
this point).  While I normally want decorations on my windows, there are
situations where I would like to remove the decoration from individual windows
and latter restore the decoration.  Is there already a layout modifier or other
mechanism that does this?  If there isn't, that's no biggie because I have an
idea of how to implement this using a layout modifier that stores undecorated
windows using ExtensibleState, but I'd hate to implement it only to find out
that this functionality is already there.

Cheers,
Norbert

--

-- 

()  ascii ribbon campaign  -  against html e-mail
/\  www.asciiribbon.org    -  against proprietary attachments

Brandon Allbery | 4 Feb 20:25
Picon
Gravatar

Re: Toggle window decoration

On Sat, Feb 4, 2012 at 14:09, Norbert Zeh <nzeh-RazJlWb3c/r3fQ9qLvQP4Q@public.gmane.org> wrote:
I'm currently experimenting with using window decorations (NoFrillsDecoration at
this point).  While I normally want decorations on my windows, there are
situations where I would like to remove the decoration from individual windows
and latter restore the decoration.  Is there already a layout modifier or other
mechanism that does this?  If there isn't, that's no biggie because I have an

One of the standard modifier toggles turns server-side borders on/off dynamically; you should be able to use the provided examples to work out how to toggle a Decorations-based modifier.

--
brandon s allbery                                      allbery.b-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
wandering unix systems administrator (available)     (412) 475-9364 vm/sms

Norbert Zeh | 4 Feb 20:32
Picon
Picon
Favicon

Re: Toggle window decoration

Brandon Allbery [2012.02.04 1425 -0500]:
> On Sat, Feb 4, 2012 at 14:09, Norbert Zeh <nzeh@...> wrote:
> 
>     I'm currently experimenting with using window decorations
>     (NoFrillsDecoration at
>     this point).  While I normally want decorations on my windows, there are
>     situations where I would like to remove the decoration from individual
>     windows
>     and latter restore the decoration.  Is there already a layout modifier or
>     other
>     mechanism that does this?  If there isn't, that's no biggie because I have
>     an
> 
> 
> XMonad.Layout.MultiToggle
> One of the standard modifier toggles turns server-side borders on/off
> dynamically; you should be able to use the provided examples to work out how to
> toggle a Decorations-based modifier.

Excellent!  Thanks.

- Norbert

Norbert Zeh | 4 Feb 20:35
Picon
Picon
Favicon

Re: Toggle window decoration

Brandon Allbery [2012.02.04 1425 -0500]:
> On Sat, Feb 4, 2012 at 14:09, Norbert Zeh <nzeh@...> wrote:
> 
>     I'm currently experimenting with using window decorations
>     (NoFrillsDecoration at
>     this point).  While I normally want decorations on my windows, there are
>     situations where I would like to remove the decoration from individual
>     windows
>     and latter restore the decoration.  Is there already a layout modifier or
>     other
>     mechanism that does this?  If there isn't, that's no biggie because I have
>     an
> 
> 
> XMonad.Layout.MultiToggle
> One of the standard modifier toggles turns server-side borders on/off
> dynamically; you should be able to use the provided examples to work out how to
> toggle a Decorations-based modifier.

Cried hurray too quickly.  MultiToggle seems to operate on entire layouts.  If I
have, say, 4 windows on a decorated layout, what I'd like to do is leave 3 of
them decorated, while removing the decoration from only one of the windows.  By
"decoration", I don't mean borders.  I mean the title bar added by
NoFrillsDecoration and similar layout modifiers.

Cheers,
Norbert

codesite | 4 Feb 20:46
Picon
Favicon

Issue 493 in xmonad: spawnPipe opens another instance of the applicatioon

Status: New
Owner: ----

New issue 493 by argu...@...: spawnPipe opens another instance
of the  
applicatioon
http://code.google.com/p/xmonad/issues/detail?id=493

What steps will reproduce the problem?
1. Have a spawnPipe on xmonad.hs
2. Hit Mod+Q
3. See a duplicate xmobar running.

What is the expected output? What do you see instead?
When pressing Mod+Q it should kill my xmobar instance and open another one.

When pressing Mod+Q it start another xmobar instance.

What version of the product are you using? On what operating system?

xmonad-darcs 20111213-1

3.2.2-1-ARCH

Are you using an xmonad.hs?  Please attach it and the output of "xmonad
--recompile".

No output on "xmonad --recompile"

Please provide any additional information below.

Attachments:
	xmonad.hs  14.1 KB

Brandon Allbery | 4 Feb 20:49
Picon
Gravatar

Re: Toggle window decoration

On Sat, Feb 4, 2012 at 14:35, Norbert Zeh <nzeh <at> cs.dal.ca> wrote:
Brandon Allbery [2012.02.04 1425 -0500]:
> XMonad.Layout.MultiToggle
> One of the standard modifier toggles turns server-side borders on/off
> dynamically; you should be able to use the provided examples to work out how to
> toggle a Decorations-based modifier.

Cried hurray too quickly.  MultiToggle seems to operate on entire layouts.  If I
have, say, 4 windows on a decorated layout, what I'd like to do is leave 3 of
them decorated, while removing the decoration from only one of the windows.  By

Ah.  That'd be harder, yes, although  think it's doable; take a look at XMonad.Layout.Decoration.
 
"decoration", I don't mean borders.  I mean the title bar added by

Right.  Most (all?) of those are based on XMonad.Layout.Decoration.

--
brandon s allbery                                      allbery.b-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
wandering unix systems administrator (available)     (412) 475-9364 vm/sms

Norbert Zeh | 4 Feb 21:06
Picon
Picon
Favicon

Re: Toggle window decoration

Brandon Allbery [2012.02.04 1449 -0500]:
> On Sat, Feb 4, 2012 at 14:35, Norbert Zeh <nzeh@...> wrote:
> 
>     Brandon Allbery [2012.02.04 1425 -0500]:
>     > XMonad.Layout.MultiToggle
>     > One of the standard modifier toggles turns server-side borders on/off
>     > dynamically; you should be able to use the provided examples to work out
>     how to
>     > toggle a Decorations-based modifier.
> 
>     Cried hurray too quickly.  MultiToggle seems to operate on entire layouts.
>      If I
>     have, say, 4 windows on a decorated layout, what I'd like to do is leave 3
>     of
>     them decorated, while removing the decoration from only one of the windows.
>      By
> 
> 
> Ah.  That'd be harder, yes, although  think it's doable; take a look at
> XMonad.Layout.Decoration.
>  
> 
>     "decoration", I don't mean borders.  I mean the title bar added by
> 
> 
> Right.  Most (all?) of those are based on XMonad.Layout.Decoration.

Indeed.  My idea of implementing this, though, was not to implement a new
decoration based on the framework provided by X.L.Decoration but to provide a
general layout modifier that allows me to toggle the decorations added by any
X.L.Decoration-based layout modifier.  I was thinking about storing the windows
that currently shouldn't have decoration in ExtensibleState.  Then, I'd have to
see how X.L.Decoration implements the addition of the tabs/titlebars.  I would
suspect it takes the rectangles provided by the underlying layout, shrinks them
to make room for the title bar, and draws the title bar.  If I can somehow hook
in my modifier as an intermediary that invokes the underlying layout, puts the
windows that should not be decorated aside, passes the remaining windows to the
decoration modifier, and finally puts all together, that would be ideal.  I'll
have to think a bit about how to do this cleanly.  For now, I just wanted to
know whether what I want can already be done essentially out of the box using
some existing modules.  Seems like the answer is no.

Cheers,
Norbert

codesite | 4 Feb 21:19
Picon
Favicon

Re: Issue 493 in xmonad: spawnPipe opens another instance of the applicatioon


Comment #1 on issue 493 by allber...@...: spawnPipe opens
another  
instance of the applicatioon
http://code.google.com/p/xmonad/issues/detail?id=493

This suggests that xmobar is not properly configured; you have xmonad.hs  
set up with DynamicLog, but xmobar is not listening for that data (and  
therefore won't know when xmonad is restarted, so it won't shut itself  
down).  What does your ~/.xmobarrc look like?

It should include a StdinReader *and* have %StdinReader% somewhere in the  
template; if you don't do both of those, it won't be reading its input and  
(a) it won't go away on restart (b) it won't show things like current  
workspace (c) xmonad will eventually hang (unless you are using GHC from  
git, or possibly the latest prerelease that came out something like 2 days  
ago).


Gmane