View Single Post
Old 11-03-2014, 03:48 AM   #147
Jan Steinman
Ecovillage founderer
Jan Steinman began at the beginning.
 
Jan Steinman's Avatar
 
Posts: 17
Karma: 10
Join Date: Nov 2014
Location: Salt Spring Island, British Columbia, Canada
Device: Kindle DXG
KAUL menu for myts

Here is a launch menu for myts in KAUL.

Here are the steps, although the enclosed archive will create the proper directory for you. Unpack and move extensions/myts into your ~/extensions directory.

1) created ~/extensions/myts directory (actually, copied and modified another working KAUL extension),

2) added the following in config.xml:
Spoiler:
<?xml version="1.0" encoding="UTF-8"?>
<extension>
<information>
<name>MyTS</name>
<version>0.0</version>
<author>Matan</author>
<id>helper</id>
</information>
<menus>
<menu type="json" dynamic="true">menu.json</menu>
</menus>
</extension>


3) added the following in menu.json:
Spoiler:
{
"items": [
{
"name": "MyTS",
"priority": 0,
"items": [
{"name": "Start Term 1", "priority": 1, "action": "/mnt/us/myts/myts.sh", "params": "1"},
{"name": "Start Term 2", "priority": 2, "action": "/mnt/us/myts/myts.sh", "params": "2"},
{"name": "Start Term 3", "priority": 3, "action": "/mnt/us/myts/myts.sh", "params": "3"},
{"name": "Kill Zombies", "priority": 9, "action": "/mnt/us/myts/myts.sh", "params": "kill"}
]
}
]
}


I also have a profile that cats the keybindings as soon as myts starts, if anyone's interested.

This is tested on a DXG/2.8.5. Should work everywhere KAUL does.
Attached Files
File Type: zip myts KAUL menu.zip (4.3 KB, 263 views)
Jan Steinman is offline   Reply With Quote