[xmonad] view workspace key shortcuts

Brent Yorgey byorgey at seas.upenn.edu
Thu Jan 29 07:38:40 EST 2009


> However, what I would like to do is have a simple key-combo which will
> get me *directly* to a given workspace, such as Mod4-m to take me to the
> "mail" workspace, and so on; I want to be able to have meaningful
> shortcuts, not just numbers.
> 
> But I haven't been able to figure out what the correct command is to
> bind to the keymap.  I've made guesses, but they're all illegal Haskell;
> no surprise, because I don't know Haskell.  (Some day, but not now).
> 
> I mean, I know I need to add someCommand to my key-list, but what?
> 
> , ((mod4Mask, xK_m), someCommand someOptions)

I think the command you are looking for is 

  windows $ W.view "mail"

assuming that you have somewhere at the top of your config

  import qualified XMonad.StackSet as W

Does that help?

-Brent


More information about the xmonad mailing list