Skip to Content »

Tech Life of Recht » Gnome Do in XMonad

 Gnome Do in XMonad

  • December 2nd, 2009
  • 10:15 pm

I recently started using Gnome Do as a launcher in xmonad - not to replace the good old XMonad.Prompt, but because it integrates quite nicely into some other OS features. For example, suspending is a matter of pressing Ctrl-Alt-space and entering susp. There are a lot of other nice features like that. I still use the regular XMonad.Prompt to start programs, as it works just fine for that.

To use Gnome Do with xmonad, I changed two things: I made sure that the Gnome Do window is ignored by xmonad, and I bound the popup key to Ctrl-Alt-space instead of the default mod4-space, which I use to switch layouts in xmonad.

Ignoring the window is simply a matter of adding a condition to the manageHook:

CODE:
  1. main = do din <- spawnPipe statusBarCmd
  2.   xmonad $ defaultConfig
  3.     {
  4.       manageHook = composeAll . concat $ [
  5.         [ className =? "Do" --> doIgnore ]
  6.       ]
  7.     }

To assign a new shortcut for the popup, simply press mod4-space to bring it up, and then click on the small arrow in the top right corner. Under Preferences->Keyboard, a new shortcut can be assigned.

3 People had this to say...

[...] This post was mentioned on Twitter by xmonad, Joakim Recht. Joakim Recht said: gnome-do in #xmonad: http://bit.ly/646K7E [...]

Gravatar

[...] This post was Twitted by janhxie [...]

Want your say?

* Required fields. Your e-mail address will not be published on this site

You can use the following XHTML tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>