XMonad, mouse events and dzen2

Hi all, i'm lurking around to figure out how to make dzen2 working fine... I don't know if XMonad is the right mailing-list to ask for this issue (don't flame me ;-). I setup the logHook tied with a spawned dzen2 and it works fine handling workspaces, layouts and titles (as usual); now i would launch many other dzen2s (clock, power, memory and so on) and i would like those to catch the mouse inputs. I launch them from .xinitrc: [...] ${HOME}/.dz2l/dz2l.sh /usr/bin/xmonad [...] dz2l.sh cycles in a directory and launch in background the various dzen2's scripts: [...] for MODULE in $MODULES do MODULE="${MODULES_PATH}/${MODULE}.sh" test -r $MODULE || { exit 1; } (${SHELL} $MODULE &) || { exit 1; } done [...] when i start X all the dzen2s come up, but i can't interact with them (eg., mouse buttons). Do i launch the scripts in the wrong position so that XMonad is not able to pass them any inputs? Thanks a lot, ff0000 P.S.: i'm a newbie ;-)

Hi all, A small update, to replicate the bad behaviour: $ while true; do echo "^tw()1"; sleep 10; done | dzen2 -e "button1=togglecollapse;button3=exit" -l 1 -fn "-*-clean-medium-r-*-*-12-*-*-*-*-*-*-*" -bg "#ff0000" -fg "#000000" dzen2 bar appears but it isn't clickable... :-( Whereas if i try this way: $ Xephyr -ac -br -screen 800x600 :1 $ export DISPLAY=:1 $ while true; do echo "^tw()1"; sleep 10; done | dzen2 -e "button1=togglecollapse;button3=exit" -l 1 -fn "-*-clean-medium-r-*-*-12-*-*-*-*-*-*-*" -bg "#ff0000" -fg "#000000" it works! I don't understand why... The only difference is that in the nested X, Xmonad isn't running... :-| Cheers, ff0000

Quoting Alessandro Massignan
A small update, to replicate the bad behaviour:
$ while true; do echo "^tw()1"; sleep 10; done | dzen2 -e "button1=togglecollapse;button3=exit" -l 1 -fn "-*-clean-medium-r-*-*-12-*-*-*-*-*-*-*" -bg "#ff0000" -fg "#000000"
dzen2 bar appears but it isn't clickable... :-(
Hmmm, that seems to work fine here. What does xmonad.hs look like? ~d

Hi Wagner,
Hmmm, that seems to work fine here. What does xmonad.hs look like? It looks like that: http://hpaste.org/fastcgi/hpaste.fcgi/view?id=24588
I'm a newbie so i could messed up the entire configuration :-P Thanks, ff0000

Hi, i replicate the correct behaviour of the bar as: $ while true; do printf "^tw()1\n2\n"; sleep 10; done | dzen2 -l 1 -e "entertitle=grabmouse;exittitle=ungrabmouse;button1=togglecollapse;button3=exit" now i wonder if i messed up something in my xmonad.hs that forces me to set "grabmouse" and "ungrabmouse" options or if these settings are right. Cheers, ff0000
participants (2)
-
Alessandro Massignan
-
wagnerdm@seas.upenn.edu