User Tools

Site Tools


tech:notion:start

Notion: Tiling Window Manager

Modified F4 Launcher for SSH

The default F4 key binding utilizes a rather stagnant handler that allows no customization of the xterm that its SSH invocation is launched in.
This is an example of how a custom handler can be used to have the F4 key prompt for a host name to connect to, and then launch with an alternate command.

This handler function conforms to what the mod_query.query() LUA function in notion expects to invoke, and simply constructs the actually command + args to use in a simple ioncore.exec() call:

function handler_xssh( mplex, str)
    sCmd = "xssh " .. str
    return ioncore.exec(sCmd)
end

This is the modified key binding line that would go into cfg_notioncore.lua:

kpress(ALTMETA.."F4", "mod_query.query(_,'Host: ',nil,handler_xssh,nil,nil)"),
tech/notion/start.txt · Last modified: 2018/08/07 21:43 by rk4n3