Re: Move frames to and from scratchpad
Daniel Clemente <dcl441-bugs-/[email protected]>
| Newsgroups | gmane.comp.window-managers.ion.general |
|---|---|
| Message-ID | <[email protected]> |
Tuomo Valkonen <[email protected]> writes: > Your _ probably points wrong, i.e. your in the wrong bindings section. > _:screen_of() should always give the screen. (Note that it's shorter > to call _:mx_current() or _:screen_of():mx_current() than to type the > full function names.) > After trying several combinations, I found one that correctly brings a frame from scratchpad to the background frame: In Lua console: _:screen_of():mx_current():current():current():attach(_sub) In a key binding: kpress(META.."Shift+k", "_:screen_of():mx_current():current():current():attach(_)"), Note the difference between _sub and _. So yes, my _ was wrong. So the current working set of keybindings for my proposal is: defbindings("WClientWin", { kpress(META.."k", "WMPlex.attach(ioncore.lookup_region('*scratchpad*'),_)"), kpress(META.."Shift+k", "_:screen_of():mx_current():current():current():attach(_)"), }) Maybe this needs some tweaks, for instance: when I move to scratchpad and the open the scratchpad, I expect to find the moved frame selected; without having to move to the right of the active on. Also I would like to use a single key instead of no: If the scratchpad is open, do one thing. If it is closed do another Is this useful for other people? How would you improve it? Thanks Daniel