I've nearly finished converting my config files, just two killer features to
go.
I use vi-style keys to move around. I'd like vi-style keys plus Control to
move the active client win around, i.e. Control acts as a sort of 'pick-up'
key.
First:
I'd like pressing DEFAULT_MOD+Control+H moves the current clientwin to the
left (and similarly vi-style DEF_MOD+Ctrl+J moves it down, ..+J up, ..+L
right).
My old config file had this:
ionframe_bindings{
set_mod "Mod4+Control"
kpress "H", "genframe_toggle_sub_tag; ionws_goto_left; genframe_attach_tagged;
ionws_goto_left; genframe_switch_next"
}
I've tried to do this in Lua, but can't get my head round it quite yet. What
I think I need to do is something like:
ionframe_bindings{
kpress(DEFAULT_MOD.."Control+H", function(frame)
clear_tags
frame:current:toggle_tag
??:left_of(frame):attach_tagged
WIonWS.goto_left(??)
end),
}
...but I can't get it to work. Help, please? (Tuomo :-)
Second:
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:
ionframe_bindings{
set_mod "Mod4+Control"
kpress "U", "genframe_move_current_tab_left"
}
...but I've no idea how to do this. Help, again?
Thanks!
Tom