
On Wed, Sep 24, 2014 at 11:57 AM, Sepp Tannhuber
My `additionalKeys` section of xmonad.hs has this key binding: ((mod3Mask, xK_d), raiseMaybe (runInTerm "-title calendar -hold -geometry 105x12+0+25" "task calendar") (title =? "calendar"))
I would like to replace the raiseMaybe by something like runOrKill. This means, it should run the terminal with title "calendar" if it's not yet running. Otherwise it should kill the terminal. How can I do that? Is it possible at all?
raiseAndDo (runInTerm "-title calendar -hold -geometry 105x12+0+25" "task calendar") (title =? "calendar")) killWindow Although I wonder if you'd be better served by making it a NamedScratchpad instead. -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net