Re: Move frames to and from scratchpad

2008-10-06 Thread Tuomo Valkonen
On 2008-10-05, Daniel Clemente <[EMAIL PROTECTED]> wrote: > I have been using the function you sent and it works very well; thanks. > With Tuomo's improvements, I think it would be very helpful for the > scratchpad feature of Ion. Could it be included? Just send it to the scripts repo. --

Re: Move frames to and from scratchpad

2008-10-05 Thread Daniel Clemente
Hi, Canaan Hadley-Voth <[EMAIL PROTECTED]> writes: > I have been using this function to do what you are trying to do. (Though > someone else might anticipate further cases where mine also fails, like a > WClientWin attached (unframed) to a WGroupWS.) > > function send_to_or_from_sp(cwin, jumpt

Re: Move frames to and from scratchpad

2008-09-25 Thread Tuomo Valkonen
On 2008-09-25, Tuomo Valkonen <[EMAIL PROTECTED]> wrote: > scan(cwin:screen_of()) Missing :mx_current() ... On second thoughts, actually a check for WGroupWS and existence of bottom() should do in most cases. If mx_current() is a group, and has a bottom() (often a WTiling) that supports attach,

Re: Move frames to and from scratchpad

2008-09-24 Thread Tuomo Valkonen
On 2008-09-25, Canaan Hadley-Voth <[EMAIL PROTECTED]> wrote: > >> 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: kp

RE: Move frames to and from scratchpad

2008-09-24 Thread Canaan Hadley-Voth
> 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

Re: Move frames to and from scratchpad

2008-09-24 Thread Daniel Clemente
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 t

Re: Move frames to and from scratchpad

2008-09-24 Thread Tuomo Valkonen
On 2008-09-24, Daniel Clemente <[EMAIL PROTECTED]> wrote: > However, I don't know how to get the current „background“ group > while I'm on the scratchpad. I tried your proposal, > WScreen.mx_current(_), but for me WScreen.mx_current(_).name(_) while > I'm in scratchpad returns just „*

Re: Move frames to and from scratchpad

2008-09-24 Thread Daniel Clemente
Hi, I start with the easy one. >> - If the scratchpad is not open, then move the current frame to the >> scratchpad. Don't open the scratchpad > This should be rather easy. Just use ioncore.lookup_region to find one named > "*scratchpad*", and use WMPlex.attach on it. I tried: WMPlex.atta

Re: Move frames to and from scratchpad

2008-09-21 Thread Tuomo Valkonen
On 2008-09-21 19:23 +0200, Daniel Clemente wrote: > - If the scratchpad is open, then move the current frame (inside the > scratchpad) to the window below the scratchpad. Don't close the scratchpad This is a bit tricky, if "below" is to be taken geometrically. I'm not sure if it is 100% doable on

Move frames to and from scratchpad

2008-09-21 Thread Daniel Clemente
At any moment, a frame is either in the scratchpad area (Mod1+Space) or not. I would like to have a single key which commutes between the two states. It would do this action: - If the scratchpad is open, then move the current frame (inside the scratchpad) to the window below the scratchpad.