Configuration question

I have a question about how to configure things for a certain behavior. A short version which suffices: is it possible to set up a keybinding to change the keybindings? Here's what I'm actually trying to do: I find that most of the time my workflow basically has me changing between two or three different "projects". (For instance, working on a couple different development projects with different source trees, etc.) Each project usually takes up a couple virtual desktops. What I would like is something like a two-tiered virtual desktop setup, where I could have different project spaces each with its own set of virtual desktops. So for instance, Mod-F1 would change to project A, and Mod-1 through Mod-5 would choose between the desktops for project A. Then Mod-F2 would change to project B, and Mod-1 through Mod-5 would choose between the desktops for Project B. I have a small amount of Haskell knowledge, but only a small amount. I'd appreciate any suggestions. Evan

On Tue, Jun 5, 2012 at 8:04 PM, Evan Driscoll
A short version which suffices: is it possible to set up a keybinding to change the keybindings?
The direct way is impossible, I'm afraid; you can't change the keybindings dynamically. You can change what a bound key *does* dynamically, though: given your example
Mod-5 would choose between the desktops for project A. Then Mod-F2 would change to project B, and Mod-1 through Mod-5 would choose between the desktops for Project B.
it is possible for the mod-1 binding to check what workspace is current, or possibly check something in ExtendedState, to determine what it should do. http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Actions-PerWorkspaceKeys... the former. -- brandon s allbery allbery.b@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms
participants (2)
-
Brandon Allbery
-
Evan Driscoll