Customizing xmonad on debian lenny

I have been trying to customize a couple of things in xmonad 0.7 following the online tutorials to the letter and after a week of frustration, I'm beginning to think that these tutorials only cover the current release, which would explain why whatever I tried always seemed to result in bizarre undocumented errors. The product works fine out of the box as long as you just use the defaults, but there are just a couple of things I need to change, such as some of the key bindings (which happen to clash with bindings I have defined in applications I run frequently), as well as the default terminal and the corresponding $TERM environment variable, for instance. Besides, I would like to set up a system status bar at the bottom of the screen, and apparently this is not available by default. This is a debian stable aka "lenny" system, and the version of xmonad is as expected pretty ancient. I wouldn't mind installing the current stable version of xmonad, but since the version from the debian stable repository pulled something like 400 Meg of Haskell dependencies, I have a feeling this is probably not going to be straightforward. Or should I wait till the current debian testing, aka squeeze becomes stable, and hopefully things will work as advertised? Please advise. CJ

On 9 February 2010 16:40, Chris Jones
I wouldn't mind installing the current stable version of xmonad, but since the version from the debian stable repository pulled something like 400 Meg of Haskell dependencies, I have a feeling this is probably not going to be straightforward.
I expect that that 400 MB of Haskell dependencies is mainly composed of GHC, which you will need if you want to customise XMonad anyway. By itself, XMonad is more of a tiling WM library with a very boring sample WM included as a demo. -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com Samuel Goldwyn - "I don't think anyone should write their autobiography until after they're dead." - http://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html

Come join us in #xmonad on Freenode. We will make fun of you for a few
minutes for using such an ancient xmonad, then do our best to help you
out.
As for 400MB of Haskell dependencies, I'm rather surprised that you're
able to customize 0.7 without having those same dependencies. If
you've got GHC installed, you might want to consider grabbing X11,
xmonad, and xmonad-contrib from the darcs repositories (even the
bleeding edge is quite stable -- I've never had it crash) and trying
to build those.
Good luck!
~d
Quoting Chris Jones
I have been trying to customize a couple of things in xmonad 0.7 following the online tutorials to the letter and after a week of frustration, I'm beginning to think that these tutorials only cover the current release, which would explain why whatever I tried always seemed to result in bizarre undocumented errors.
The product works fine out of the box as long as you just use the defaults, but there are just a couple of things I need to change, such as some of the key bindings (which happen to clash with bindings I have defined in applications I run frequently), as well as the default terminal and the corresponding $TERM environment variable, for instance.
Besides, I would like to set up a system status bar at the bottom of the screen, and apparently this is not available by default.
This is a debian stable aka "lenny" system, and the version of xmonad is as expected pretty ancient.
I wouldn't mind installing the current stable version of xmonad, but since the version from the debian stable repository pulled something like 400 Meg of Haskell dependencies, I have a feeling this is probably not going to be straightforward.
Or should I wait till the current debian testing, aka squeeze becomes stable, and hopefully things will work as advertised?
Please advise.
CJ _______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad

On Tue, Feb 09, 2010 at 02:00:43AM EST, Ivan Miljenovic wrote:
On 9 February 2010 16:40, Chris Jones
wrote:
I wouldn't mind installing the current stable version of xmonad, but since the version from the debian stable repository pulled something like 400 Meg of Haskell dependencies, I have a feeling this is probably not going to be straightforward.
I expect that that 400 MB of Haskell dependencies is mainly composed of GHC, which you will need if you want to customise XMonad anyway. By itself, XMonad is more of a tiling WM library with a very boring sample WM included as a demo.
hehe.. uninteresting was the word that came to my mind. In the world of software, I can think of lots of uninteresting stuff but problably nothing more boring than window managers. That's why I'm looking for one that just gets out of the way and lets me get on with my life. What does interest me, though is the tiling interface per se, how it can make things more effective than the traditional destktop with its menus, icons, and all that point & click stuff. What I have done so far is toned down one of the better thought-out ones -- i.e. Window Maker, eventually removing practically everything, save for a few keyboard bindings that fire up frequently used applications and let me switch workspaces. Not a good approach to the problem: makes more sense to start with the bare metal and add in the stuff you need. As to the dependencies, you are likely quite correct. It's just the way the packaging system works, it delivers everything Haskell, including mountains of doc that can be browsed online, rather than try to be more selective and end up missing something useful. On Tue, Feb 09, 2010 at 05:43:58AM EST, wagnerdm@seas.upenn.edu wrote:
Come join us in #xmonad on Freenode. We will make fun of you for a few minutes for using such an ancient xmonad, then do our best to help you out.
That won't be necessary. I eventually got a chance to boot into debian testing and with 0.8 everything appears to behave as advertised.
As for 400MB of Haskell dependencies, I'm rather surprised that you're able to customize 0.7 without having those same dependencies.
When you apt-get xmonad, regardless of the version, debian ends up installing what looks like close to a hundred packages. Meaning that I was concerned that trying to install manually might have landed me in dependency hell. I don't think this would have been the case, though: despite the large number of packages, and size thereof.. the actual dependency is quite trivial: you just need a working Haskell environment in order to configure xmonad. Doesn't look like a case of fifteen layers of libraries, with half of them dummy packages to resolve compatiblity issues.
If you've got GHC installed, you might want to consider grabbing X11, xmonad, and xmonad-contrib from the darcs repositories (even the bleeding edge is quite stable -- I've never had it crash) and trying to build those.
As stated above, the debian squeeze version appears to be fairly easy to set up. Where I did waste a lot of time was with xmobar. Peculiar syntax and rather approximate documenation. I probably would have been better off taking the dzen route. One quick question, I see a bunch of screenshots on the xmonad wiki and some look pretty much like what I'm trying to end up with, but the configuration files or scripts appear not to have been made available. Sorry for trying to steal from other folks, but I don't have much time to devote to this right now, and I thought that it might be an effective approach to clone someone's configuration and use that as a starting point. Thank you for your comments. CJ

Quoting Chris Jones
Where I did waste a lot of time was with xmobar. Peculiar syntax and rather approximate documenation.
I have similar complaints.
One quick question, I see a bunch of screenshots on the xmonad wiki and some look pretty much like what I'm trying to end up with, but the configuration files or scripts appear not to have been made available.
It might help if you say which ones you liked. Their authors would probably be pleased as punch. ;-) ~d

On Wed, Feb 10, 2010 at 12:45:32PM EST, wagnerdm@seas.upenn.edu wrote:
Quoting Chris Jones
:
[..]
It might help if you say which ones you liked. Their authors would probably be pleased as punch. ;-)
Hm.. Sorry about that, I was generically thinking that the config files & scripts were there and that I was just too dumb to figure out where they were.. :-) Actually, the ones that use dzen are all pretty good. The two xinerama mostly pale green screenshots are aesthetically very pleasing, not what I would use such colors myself.. would depress me in not time, but where the good stuff really is the dzen gotmor site, particularly the last screenshot, with just a status bar and a few widgets: http://dzen.geekmode.org/dwiki/lib/exe/fetch.php?cache=cache&media=dzen:dzen_dbar_styles.png What puzzles me is that it looks like contrary to xmobar, dzen does need to be infoked from xmonad.hs, but then how does xmonad know that it's there and needs to leave a gap for it at the top/bottom of the screen. Thanks, CJ

Quoting Chris Jones
What puzzles me is that it looks like contrary to xmobar, dzen does need to be infoked from xmonad.hs, but then how does xmonad know that it's there and needs to leave a gap for it at the top/bottom of the screen.
Actually, it's probably easiest to invoke your bar from within xmonad, whether it's xmobar or dzen. xmonad knows how much gap to leave becaues xmobar and dzen set strut hints, and the manageDocks/avoidStruts manage hook and layout modifier, respectively, know what to do with those. Cheers, ~d

Hello, On Wed, Feb 10, 2010 at 11:33:16AM -0500, Chris Jones wrote:
When you apt-get xmonad, regardless of the version, debian ends up installing what looks like close to a hundred packages. Meaning that I was concerned that trying to install manually might have landed me in dependency hell. I don't think this would have been the case, though: despite the large number of packages, and size thereof.. the actual dependency is quite trivial: you just need a working Haskell environment in order to configure xmonad. Doesn't look like a case of fifteen layers of libraries, with half of them dummy packages to resolve compatiblity issues.
Your debian seems not like mine, if I remember well I just needed those packages to get a XMonad with full extensions : $ apt-get source xmonad xmonad-contrib # aptitude install ghc6 libghc6-mtl-dev libghc6-utf-8-string-dev libghc6-x11-dev libghc6-x11-xft-dev
One quick question, I see a bunch of screenshots on the xmonad wiki and some look pretty much like what I'm trying to end up with, but the configuration files or scripts appear not to have been made available.
This is surely what you look for : http://www.haskell.org/haskellwiki/Xmonad/Config_archive

On Wed, Feb 10, 2010 at 12:53:08PM EST, julien steinhauser wrote:
Hello,
On Wed, Feb 10, 2010 at 11:33:16AM -0500, Chris Jones wrote:
When you apt-get xmonad, regardless of the version, debian ends up installing what looks like close to a hundred packages. Meaning that I was concerned that trying to install manually might have landed me in dependency hell. I don't think this would have been the case, though: despite the large number of packages, and size thereof.. the actual dependency is quite trivial: you just need a working Haskell environment in order to configure xmonad. Doesn't look like a case of fifteen layers of libraries, with half of them dummy packages to resolve compatiblity issues.
Your debian seems not like mine, if I remember well I just needed those packages to get a XMonad with full extensions :
They're all different :-) I assume that the difference is that I have a very minimal system that was installed one package at a time, not via the gnome-desktop, or KDE-desktop, or whatever they call these things in the installer, and that a lot of other stuff that was already installed on your system -- and that I had managed so far not to install on mine -- eventually got pulled in.. oh, well..
$ apt-get source xmonad xmonad-contrib
# aptitude install ghc6 libghc6-mtl-dev libghc6-utf-8-string-dev libghc6-x11-dev libghc6-x11-xft-dev
Makes sense to me. Unfortunately, I was doing something else at the time the install was running and I didn't really bother making even a mental note of what these extra packages were. I'm sure there's a way I could find out, this is debian after all, probably some log or other in /var/cache/apt .. but since all went well and since it's not working on the lenny system anyway, I think I'll just do an apt-get remove --purge followed by an autoremove and focus on the squeeze system for now.
One quick question, I see a bunch of screenshots on the xmonad wiki and some look pretty much like what I'm trying to end up with, but the configuration files or scripts appear not to have been made available.
This is surely what you look for :
Precisely what I was looking for.. not sure how I missed it. Thank you for your comments. CJ
participants (4)
-
Chris Jones
-
Ivan Miljenovic
-
julien steinhauser
-
wagnerdm@seas.upenn.edu