On Thu, Jul 03, 2003 at 03:25:17AM +0200, Toke N-S wrote:
> Hi
> 
> I was wondering if it in ion is possible to have a workspace managed by
> a frame so that the workspace will show up as another tab in the
> frame. 

Mod1+F3 .. region_manage_new(_, {type="WFloatWS"})

> Also how do you then direct
> keypresses to a specific level in this hierarchy? 

You must do the level selection in your binding functions.

You could do this with wrappers like:

function wrap_level(bindings)
    for i, v in ipairs(bindings)
        if v.action=="kpress" then
            local func=v.func
            v.func=function(...)
                       local reg=table.remove(arg, 1)
                       -- replace reg with a parent at wanted level
                       func(reg, unpack(arg))
                   end
        end
    end
    
    return {submap2("whatever", bindings)}
end

bindings_whatever={... bindings ...}

whatever_bindings(bindings_whatever)
whatever_bindings(wrap_level(bindings_whatever))


Is it possible
> to have different keybindings bound to the same function but to
> different levels of workspaces (e.g. the outermost, the second
> outermost etc.)?
> To be able to do these things would make ion more usable for me, as it
> would enable me to e.g. use programs with many windows much more
> efficiently by putting the program in a separate ionws inside an
> ionframe.
> 
> Thanks
> 
> Toke N-S

-- 
Tuomo

Reply via email to