Bug 4441 - [PATCH] Window "Remember" keybind action
Status: ASSIGNED
Alias: None
Product: Openbox
Classification: Unclassified
Component: general
Version: 3.4.10
Hardware: PC Linux
: P2 enhancement
Assignee: Dana Jansens
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2009-12-28 21:26 EST by Daniel Ramsay
Modified: 2010-01-31 10:16:50 EST
2 users (show)

See Also:


Attachments
Openbox 3.4.7.2 "Remember Window" patch (1.66 KB, application/x-gzip)
2009-12-28 21:26 EST, Daniel Ramsay
Openbox 3.4.10 "Remember Window" patch (5.15 KB, patch)
2010-01-19 17:43 EST, Daniel Ramsay
Openbox 3.4.10 "Remember Window" patch - updated (6.12 KB, patch)
2010-01-31 10:04 EST, Daniel Ramsay
Openbox 3.4.10 "Remember Window" patch - updated (6.44 KB, patch)
2010-01-31 10:16 EST, Daniel Ramsay

Description Daniel Ramsay 2009-12-28 21:26:20 EST
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.
Comment 1 Daniel Ramsay 2010-01-19 17:43:37 EST
Created attachment 2274 [details]
Openbox 3.4.10 "Remember Window" patch
Comment 2 Daniel Ramsay 2010-01-19 17:44:26 EST
Updated patch to build against 3.4.10.  Recalling a saved window also now switches desktop if required.
Comment 3 Mikachu 2010-01-19 17:53:09 EST
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=f7a33b1ff7a28603fa1859a1a3b3858b050b1255
http://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.)
Comment 4 Dana Jansens 2010-01-25 11:53:53 EST
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.
Comment 5 Dana Jansens 2010-01-25 11:55:04 EST
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.
Comment 6 Daniel Ramsay 2010-01-31 10:04:36 EST
Created attachment 2289 [details]
Openbox 3.4.10 "Remember Window" patch - updated

Added visual notification when a hotkey is assigned to a window.
Comment 7 Daniel Ramsay 2010-01-31 10:16:50 EST
Created attachment 2290 [details]
Openbox 3.4.10 "Remember Window" patch - updated

Adds a notification when a hotkey->window assignment is cleared.