Duncan_Idaho, I've been trying to tailor the configuration and got a bit lost. It's difficult to pick isolated bits out of the many sets of configuration files online without understanding properly how they interact.
What I have is vanilla xmonad with a wallpaper and dmenu, started via gdm in the way you suggested. What I would like in addition to that is to see the wicd and update notifier icons, and an off switch. I thought trayer looked like a good app to do that (I'm not interested in how many teraflops my CPU is doing or the weather in Seattle, and especially not in whether someone somewhere has sent me a message of some kind). I installed it and added a line to /etc/X11/xinit/xinitrc.xmonad accordingly. The result is a narrow four-inch strip bang in the middle of my screen, showing a tiny piece of the wallpaper and no icons.
So two problems - oddly, trayer runs, but seemingly without paying attention to all those arguments telling it how to behave; this looks like its default conformation. Secondly, the stuff that goes in the tray in xfce must need to be told to talk to trayer. I was expecting to have to work on the off switch, because there isn't one in xfce, but I hoped to see the wicd and gslapt icons.
I can certainly live without it while I find out more about how xmonad works, but if you have any pointers for me, I'd be most grateful.
EDIT
It seems the solution may be closer than I thought. First, when I logged off and on again to try adding --distance [a low value], it worked - the tray appears in the right place, even without the --distance switch. I'd already rebooted, so who knows what was causing the funny position. Secondly, if I run wicd-client or slapt-update-notifier from the console, the icons duly appear. Actually, maybe the non-appearance is related to a problem with the notifier discussed here
http://www.salixos.org/forum/viewtopic. ... ier#p13374
but as far as I remember, the wicd icon appeared normally last time I ran xfce.
So, maybe it's a beta problem rather than an xmonad problem. That would leave the off switch!
Here is my xinitrc.xmonad. I don't appear to have an xmonad.hs, if find is to be trusted (there are two, but both in /man directories, so I suppose these are reference copies). Unfortunately I can't remember now what I did exactly on first installing xmonad, but probably not much beyond your suggestions.
Code: Select all
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# Merge in defaults and keymaps
[ -f $sysresources ] && /usr/bin/xrdb -merge $sysresources
[ -f $sysmodmap ] && /usr/bin/xmodmap $sysmodmap
[ -f $userresources ] && /usr/bin/xrdb -merge $userresources
[ -f $usermodmap ] && /usr/bin/xmodmap $usermodmap
trayer --edge bottom --align right --SetDockType true --SetPartialStrut true --expand true --width 15 --height 12 --transparent true --tint 0x000000 &
feh --bg-scale ~/wallpaper &
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
exec ck-launch-session /usr/bin/xmonad
else
exec /usr/bin/xmonad
fi