[xmonad] announce: XMonad.Util.WindowProperties

Spencer Janssen sjanssen at cse.unl.edu
Sun Mar 23 00:15:09 EDT 2008


On Wed, Mar 19, 2008 at 05:47:59PM -0400, gwern0 at gmail.com wrote:
> On 2008.03.19 22:31:02 +0200, Roman Cheplyaka <roma at ro-che.info> scribbled 1.8K characters:
> > * gwern0 at gmail.com <gwern0 at gmail.com> [2008-03-19 16:26:07-0400]
> > > On 2008.03.18 20:54:32 +0200, Roman Cheplyaka <roma at ro-che.info> scribbled 1.4K characters:
> > > > Just pushed new module: XMonad.Util.WindowProperties.
> > > >
> > > > This module allows to specify window properties, such as title,
> > > > classname or resource, and to check them.
> > > > In contrast to ManageHook properties, these are instances of Show and
> > > > Read, so they can be used in layout definitions etc.
> > > >
> > > > It was a part of IM layout before, and now I hope it will help Braden
> > > > with his PlainConfig.
> > > >
> > > > --
> > > > Roman I. Cheplyaka (aka Feuerbach @ IRC)
> > >
> > > Is this module intended to also eventually include setters of window properties? (I only see getters.)
> >
> > It isn't.
> > Actually, I hear such idea for the first time. How do you see it?
> >
> > --
> > Roman I. Cheplyaka (aka Feuerbach @ IRC)
> 
> Well, I was musing that there could be situations in which rewriting window properties on the fly could be useful. For example, you've seen my runOrRaise stuff? It doesn't work if, say, Emacs is inside a terminal. To solve this you would hypothetically write 'bind m "setWindowClass 'Emacs'"' (if you follow my pseudo-code). And who knows what other stuff you could do. For example, if you're allowed to create new window properties on a window, you could implement a per app copy-paste system!
> 
> --
> gwern
> 52 GSS SHA DDPS Amn SSCI warfare Exon Pesec High

xmonad shouldn't be altering these properties -- have you seen the flags for
urxvt and xterm to set the class and resource name?


Cheers,
Spencer Janssen


More information about the xmonad mailing list