[xmonad] Looking for "runOrKill" function
Brandon Allbery
allbery.b at gmail.com
Wed Sep 24 22:45:39 UTC 2014
On Wed, Sep 24, 2014 at 6:37 PM, Sepp Tannhuber <sepp.tannhuber at 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 at gmail.com ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/xmonad/attachments/20140924/c644a280/attachment.html>
More information about the xmonad
mailing list