Changes
- Rename the
cmdmenu item to theTerm, and replaceWindows PowerShellwithPowerShell Core(pwsh) in default configuration on Windows. - Implement vtm.set()/vtm.del()/vtm.selected() functions to set/delete/set selected menu items. #544, #393
Syntax
| Function | Description |
|---|---|
vtm.del() (without parameters)
| Delete all taskbar menu items. |
vtm.del(<id>)
| Delete menu item by <id>.
|
vtm.selected(<id>)
| Set selected menu item using specified <id> (affected to the desktop RightDrag gesture and Tile's + button).
|
vtm.set(id=<id> <attr_list>)
| Create or override a menu item using a space-separated list of attribute=<value>.
|
vtm.run() (without parameters)
| Create and run temporary menu item constructed using default attributes. |
vtm.run(<attr_list>)
| Create and run a menu item using a space-separated list of attribute=<value> (derived from existing or updated temporary item).
|
vtm.dtvt(<dtvt_app_command_line>)
| Create a temporary menu item and run the specified dtvt-executable. |
vtm.shutdown()
| Disconnect all users and shutdown. |
Examples
bash (vtm desktop should be running)
printf "vtm.set(hidden id=t1 cmd='ping ::1')\nvtm.set(hidden id=t2 cmd='ping ::1')\nvtm.set(hidden id=htop cmd='htop')\nvtm.run(type=group cmd='v(h(t1,t2),htop)')" | vtm
printf "vtm.del()\nvtm.set(id=mc cmd=mc)\nvtm.set(id=htop cmd=htop)\nvtm.selected(mc)" | vtm
Auto start vtm desktop; configure menu; connect to the desktop:
vtm -d; printf "vtm.del()\nvtm.set(id=mc cmd=mc)\nvtm.set(id=htop cmd=htop)\nvtm.selected(mc)" | vtm; vtm