Open
Description
*.vtmx Support
The application layout is described by a hierarchical xml-like structure stored as plain text in the app.vtmx
file with a shebang. This is in the spirit of *.html
markup, only we have our own tags and Lua is used instead of JavaScript.
It should be like:
-
app1.vtmx
:#!/bin/vtm <vtmx> <config> ... </config> <body id="App_1" title="Application Title" footer="vtmx-application"> <fork axis="vt"> <slot1> <item="Application Title"/> </slot1> <slot2> <fork axis="hz"> <slot1> <item="Left side."/> </slot1> <slot2> <list> <item="Right side:"/> <item="Hello!"/> <item="World!"/> <item="Click me to exit." id="label_1"> <onclick script="App_1.exit();"/> <onhover script="is_active=gear.is_active(); label_1.underline(is_active); label_1.invert(is_active);"/> </item> </list> </slot2> </fork> </slot2> </fork> </body> <events> <App_1 key*> <key="Esc" script="vtm.exit()"/> </App_1> </events> </vtmx>
-
Approx result:
screen_record_Tue_02.04.2025_20-01-20.97.mp4
Metadata
Metadata
Assignees
Labels
No labels