
On Mon, 25 May 2009 19:03:28 +0400
Khudyakov Alexey
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