User Tools

Site Tools


tech:notion:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tech:notion:start [2018/08/07 21:31]
rk4n3 created
tech:notion:start [2018/08/07 21:43] (current)
rk4n3
Line 1: Line 1:
 +<typo fs:​xx-large;​ fw:​bold>​Notion:​ Tiling Window Manager</​typo>​
  
 +==== 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:
 <​code>​ <​code>​
 function handler_xssh( mplex, str) function handler_xssh( mplex, str)
Line 6: Line 11:
     return ioncore.exec(sCmd)     return ioncore.exec(sCmd)
 end end
 +</​code>​
    
-  +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)"​),​ +<​code>​kpress(ALTMETA.."​F4",​ "​mod_query.query(_,'​Host:​ ',​nil,​handler_xssh,​nil,​nil)"​),</​code>​
-</​code>​+
  
  
tech/notion/start.1533695477.txt.gz · Last modified: 2018/08/07 21:31 by rk4n3