3 Notionflux - lua remote control for Notion.
9 Notionflux allows you to access the notion lua scripting interface from the
10 command\-line. It either takes a script from stdin or through the '\-e'
13 The lua script will be executed by the Lua engine running in Notion, which
14 means it has access to the Notion lua api (notioncore.* et al). Calls to
15 'print' will print values to Notion's stdout (e.g. ~/.xsession\-errors).
16 The scripts' return value will be printed by notionflux.
25 Notionflux talks to Notion through a socket, which is determined by the _NOTION_MOD_NOTIONFLUX_SOCKET property on the root of the display on which Notion is running.
29 The notionflux socket is created with read/write permissions only for the user who started notion. Neither notion nor notionflux are setuid, so notionflux should not pose any security threat.
32 Write 'foo' to Notion's stdout and 'bar' to the terminal, specifying the script on the commandline:
36 $ notionflux -e "print('foo'); return 'bar'"
41 Or the same, but now via STDIN:
45 $ echo "print('foo'); return 'bar'" | notionflux
52 The Notion home page, \fIhttp://notion.sf.net/\fP
54 The document "Configuring and extending Notion with Lua" found on the
59 \fIX(7x)\fP, \fInotionflux(1)\fP
62 Notionflux was written by the Notion team, based on ionflux which was written by Tuomo Valkonen <tuomov at iki.fi>.