Created attachment 2241[details]
Openbox 3.4.7.2 "Remember Window" patch
A patch that adds a "Remember" action, allowing a hotkey to be set to switch back to a window quickly. Emulates a similar feature present in WindowMaker.
Usage information is present in the remember.c file.
This is sort of related to two actions i have that let me have hotkeys for sending arbitrary keys to a runtime selected window (use case is pause/unpause of mplayer without finding the window first).
http://git.mika.l3ib.org/?p=openbox.git;a=commit;h=f7a33b1ff7a28603fa1859a1a3b3858b050b1255http://git.mika.l3ib.org/?p=openbox.git;a=commit;h=cb53bff7b05883d0ada65a012424f9ac3d0ed0ac
I guess yours is nice because it lets you assign different windows to different keys, but neither yours nor mine seems to allow running an arbitrary action on the window which should actually be almost trivial, just need to store the obclient instead of the window id. (A later commit in my tree lets you use the sendkeyevent with other stuff too, ie if you chain allclients and if together, you can send a specific key to all windows that have a specific title, for example.)
I've been wanting to do something like this for a while. Mika's points are good, and I'd like to see it possible to assign any actions to run on a window that you've "remembered" rather than force it to be the Focus action.
Also, random thought: might it be possible to add a group of windows together in a remember? Then you could do something like "movetodesktop" on a bunch of stuff, or iconify/deiconify it all together.
Created attachment 2241 [details] Openbox 3.4.7.2 "Remember Window" patch A patch that adds a "Remember" action, allowing a hotkey to be set to switch back to a window quickly. Emulates a similar feature present in WindowMaker. Usage information is present in the remember.c file.
Created attachment 2274 [details] Openbox 3.4.10 "Remember Window" patch
Created attachment 2289 [details] Openbox 3.4.10 "Remember Window" patch - updated Added visual notification when a hotkey is assigned to a window.
Created attachment 2290 [details] Openbox 3.4.10 "Remember Window" patch - updated Adds a notification when a hotkey->window assignment is cleared.