On Wed, Sep 24, 2014 at 6:37 PM, Sepp Tannhuber <sepp.tannhuber@yahoo.de> wrote:
OK, I changed that into:
scratchpads = [
     NS "calendar" "urxvt -name calendar -e task calendar" (title =? "calendar")
     (customFloating $ W.RationalRect 0 (1/10) (4/10) (3/10))
 ]

Now it compiles without an error. But when I type <Mod-d>,
a window pops up and disappears. I changed the »task calendar«
command into »htop«. Then a terminal with htop is opened. But
it's not floated.

Yes. The problem is the program runs and immediately exits, so the terminal exits. The xterm one uses -hold to make the terminal stick around after the program exits, so you have a persistent calendar window.

It looks like urxvt also supports -hold, so add that after `-name calendar`.

--
brandon s allbery kf8nh                               sine nomine associates
allbery.b@gmail.com                                  ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net