Created Module: menu (markdown)

Michael Carlberg 2016-10-14 23:42:27 +02:00
parent cfb26dc6ba
commit 3118025af6
1 changed files with 45 additions and 0 deletions

45
Module:-menu.md Normal file

@ -0,0 +1,45 @@
This module lets you create text menu's.
### Basic settings
~~~ ini
[module/menu-apps]
type = custom/menu
; "menu-LEVEL-N" has the same properties as "label-NAME" with
; the additional "exec" property
;
; Available exec commands:
; menu-open-LEVEL
; menu-close
; Other commands will be executed using "/usr/bin/env sh -c $COMMAND"
menu-0-0 = Browsers
menu-0-0-exec = menu-open-1
menu-0-2 = Multimedia
menu-0-2-exec = menu-open-3
menu-1-0 = Firefox
menu-1-0-exec = firefox &
menu-1-1 = Chromium
menu-1-1-exec = chromium &
menu-2-0 = Gimp
menu-2-0-exec = gimp &
menu-2-1 = Scrot
menu-2-1-exec = scrot &
~~~
### Additional formatting
~~~ ini
; Available tags:
; <label-toggle> (default) - gets replaced with <label-(open|close)>
; <menu> (default)
;format = <label-toggle> <menu>
label-open = Apps
label-close = x
; Optional item separator
; Default: none
label-separator = |
~~~