On Wed, Aug 20, 2003 at 09:20:46PM +0200, Tom Payne wrote:
> ...but I can't get it to work. Help, please? (Tuomo :-)
function move_left(ws, frame)
local c, other = frame:current(), ws:left_of(frame)
if c and obj_is(other, "WMPlex") then
other:attach(c, { switchto = true })
end
if other then
other:goto()
end
end
That should do it, but I haven't tried it. If you want the movement to
wrap around, use (ws:left_of(frame) or ws:rightmost()) on the first line.
(Alternatively one might want to wrap to another screen on the same
root window.) The code for other directions is similar (I should probably
add versions of the functions that take the direction as paraemters).
> Similarly, I'd like pressing DEF_MOD+Ctrl+U to move the current tab left
> (i.e. re-order the tabs). My old config had:
WGenFrame.move_current_to_prev_index
(This is actually a WMPlex function and can be used on WScreens to reorder
workspaces, hence the lack of "tab" in the name.)
--
Tuomo