[xmonad] run a program when switching to a workspace

Sergey Manucharian sergey at ingeniware.com
Tue May 26 11:58:57 EDT 2009


On Mon, 25 May 2009 19:03:28 +0400
Khudyakov Alexey <alexey.skladnoy at gmail.com> wrote:

> On Monday 25 of May 2009 18:47:42 Sergey Manucharian wrote:
> > Hi folks,
> >
> > How can I configure xmonad to run a program when switching to a
> > particular workspace? Example: I want to run a script changing the
> > keyboard layout to "us" unconditionally when I'm on particular
> > workspaces (with ssh, rdesktop etc.).
> >
> Why not.
> 
> Use something like this. I used key bindings description from
> EZConfig. 
> 
> > (("M-w") , spawn "some-program" >>  windows $ W.greedyView "Some
> > workspace") 

Thanks for the reply, Alexey.

Wouldn't it just add another key binding?
What I meant is e.g. if I switch to the workspace "1" (no matter how)
the keyboard layout falls to default one ("us") by running a script. In
that case a key binding will not help...

Cheers,
Sergey


More information about the xmonad mailing list