Andy Gimblett | 26 Apr 2007 12:06
Picon
Picon
Favicon

Re: thanks and a feature request

On Thu, Apr 26, 2007 at 10:03:55AM +1000, Donald Bruce Stewart wrote:
> clawsie:
> > 
> > as a feature request, it would be nice to pre-assign workspaces to
> > application names in Config.hs. i don't see the need to be
> > too dogmatic about copying dwm, but this is one feature i like.
> 
> Possibly you could hack this up in Config.hs, (basically, check the
> application name, and assign it to a certain workspace). Its not a
> priority yet for us though.

This is something I'm interested in too, as I use it all the time in
wmii - or rather, I used to!  :-) I'll probably have a go at this over
the weekend unless someone else beats me to it.  :-)

Cheers,

-Andy

--

-- 
Andy Gimblett
Computer Science Department
University of Wales Swansea
http://www.cs.swan.ac.uk/~csandy/
Alec Berryman | 26 Apr 2007 13:06
Gravatar

Re: Using dzen for a popup statusbar in xmonad

Donald Bruce Stewart on 2007-04-26 12:31:47 +1000:

> One possible option is to use dzen, a console-based X statusbar client:
>
>     http://gotmor.googlepages.com/dzen

dzen supports setting x position and width, which is very nice for
Xinerama users.
Andy Gimblett | 26 Apr 2007 14:38
Picon
Picon
Favicon

"Empty" KeyMask: 0 vs AnyModifier vs ...?

Hi all,

I'm trying to set up keybindings in Config.hs which require no
modifier at all.  eg, to launch a terminal when I hit F2.

The following works:

    , ((0,                  xK_F2    ), spawn "urxvt")

but doesn't feel "right".  Is there a better candidate for the KeyMask
field?  I thought anyModifier might be right (something Anselm once
said seemed to support that:
http://www.suckless.org/pipermail/dwm/2006-October/001078.html ) but
no, it doesn't.

Any thoughts?

Thanks,

-Andy

--

-- 
Andy Gimblett
Computer Science Department
University of Wales Swansea
http://www.cs.swan.ac.uk/~csandy/
Bruce Stephens | 26 Apr 2007 23:48
Picon
Picon

How do I know if Xinerama's working?

I've just built X11-extras and xmonad, largely without incident, and
Xinerama seems not to be working: when I create an xterm, it spans
both screens.

Is that to be expected?  I was expecting each screen to contain its
own workspace.

There's no problem with my X.org setup in general: I have a
libXinerama.so.1, and (for example) ion3 links against it and seems to
use it.

(xmonad doesn't link against it, according to ldd, but I'm not sure
whether I should expect it to or not.)
Alec Berryman | 27 Apr 2007 00:29
Gravatar

Re: How do I know if Xinerama's working?

Bruce Stephens on 2007-04-26 22:48:08 +0100:

> (xmonad doesn't link against it, according to ldd, but I'm not sure
> whether I should expect it to or not.)

I have xmonad working with Xinerama, and the binary links with
libXinerama.  I believe that if X11-extras doesn't detect Xinerama
headers, it won't build in support, but it won't die, either.  When
cabal runs configure, I see something like:

checking X11/extensions/Xinerama.h usability... yes
checking X11/extensions/Xinerama.h presence... yes
checking for X11/extensions/Xinerama.h... yes

Maybe cabal couldn't find your Xinerama header files.
Spencer Janssen | 27 Apr 2007 04:53
Favicon

Re: How do I know if Xinerama's working?

On Thu, 26 Apr 2007 22:48:08 +0100
Bruce Stephens <xmonad@...> wrote:

> I've just built X11-extras and xmonad, largely without incident, and
> Xinerama seems not to be working: when I create an xterm, it spans
> both screens.
> 
> Is that to be expected?  I was expecting each screen to contain its
> own workspace.
> 
> There's no problem with my X.org setup in general: I have a
> libXinerama.so.1, and (for example) ion3 links against it and seems to
> use it.
> 
> (xmonad doesn't link against it, according to ldd, but I'm not sure
> whether I should expect it to or not.)

If you're building X11-extras from darcs, make sure you run autoreconf
before configure.  If you're using X11-extras 0.0 from Hackage, please
use 0.1 instead -- due to a packaging error, 0.0 is missing the needed
configure script.

Cheers,
Spencer Janssen
Bruce Stephens | 27 Apr 2007 11:20
Picon
Picon

Re: How do I know if Xinerama's working?

Spencer Janssen <sjanssen@...> writes:

> On Thu, 26 Apr 2007 22:48:08 +0100
> Bruce Stephens <xmonad@...> wrote:
>
>> I've just built X11-extras and xmonad, largely without incident, and
>> Xinerama seems not to be working: when I create an xterm, it spans
>> both screens.
>> 
>> Is that to be expected?  I was expecting each screen to contain its
>> own workspace.
>> 
>> There's no problem with my X.org setup in general: I have a
>> libXinerama.so.1, and (for example) ion3 links against it and seems to
>> use it.
>> 
>> (xmonad doesn't link against it, according to ldd, but I'm not sure
>> whether I should expect it to or not.)
>
> If you're building X11-extras from darcs, make sure you run autoreconf
> before configure.  If you're using X11-extras 0.0 from Hackage, please
> use 0.1 instead -- due to a packaging error, 0.0 is missing the needed
> configure script.

Thanks, that was it.  I had tried both X11-extras-0.0, and then got it
using darcs, both of which failed.  autoreconf fixed it.
Daniel Wagner | 27 Apr 2007 12:08
Picon
Favicon

Re: "Empty" KeyMask: 0 vs AnyModifier vs ...?

Andy Gimblett wrote:
> The following works:
>     , ((0,                  xK_F2    ), spawn "urxvt")
> but doesn't feel "right".  Is there a better candidate for the KeyMask

I think "none" is the magic word here, but I'm not sure:
     , ((none, xK_F2), spawn "urxvt")
(none is defined in X11-extras, so you may have to import something 
special, I haven't really tested this.)

g'luck!
~d
Andy Gimblett | 27 Apr 2007 16:05
Picon
Picon
Favicon

Re: "Empty" KeyMask: 0 vs AnyModifier vs ...?

On Fri, Apr 27, 2007 at 03:08:01AM -0700, Daniel Wagner wrote:
> 
> I think "none" is the magic word here, but I'm not sure:
>     , ((none, xK_F2), spawn "urxvt")
> (none is defined in X11-extras, so you may have to import something 
> special, I haven't really tested this.)

Yep - that's absolutely right, and works as advertised, given:

    import Graphics.X11.Xlib.Extras (none)

Thanks, Daniel!

-Andy

--

-- 
Andy Gimblett
Computer Science Department
University of Wales Swansea
http://www.cs.swan.ac.uk/~csandy/
Dale Jordan | 28 Apr 2007 02:07
Picon
Favicon

Ideas on configuring workspaces?

Firstly, thanks for the tips on getting XM working on FreeBSD.  I got it 
working after upgrading to FreeBSD 6.2 (required to build GHC 6.6) and 
getting Cabal from darcs.  Finally a window manager a non-X-guru can 
(mostly) understand.

I have been looking at having XM configure my workspaces, rather than 
doing it manually after prelaunching apps in .xinitrc or launching them 
from the keyboard.  However, I don't have a clue how to correlate the 
app's windowID, when they decide to map themselves, with any data 
structures I might build in Config.hs.  Does anyone have any clues about 
what info is available through X that might help?

Dale Jordan

Gmane