File: fluxbox.menu-method

package info (click to toggle)
fluxbox 1.3.7-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,388 kB
  • sloc: cpp: 38,936; sh: 13,847; makefile: 404; ansic: 233; perl: 225
file content (26 lines) | stat: -rw-r--r-- 992 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/install-menu
#
# Generates fluxbox menus for all registered applications.
# (taken from Blackbox)
compat="menu-1"
outputencoding="LOCALE"

!include menu.h

genmenu="menudefs.hook"
examplercfile="system.fluxbox-menu"
rcfile="fluxbox-menu"
rootprefix="/etc/X11/fluxbox/"
userprefix=".fluxbox/"
treewalk=M)

supported
    x11=   nstring(level(), "   ") "[exec] (" esc($title, ")") ") {" esc($command, "()") "} <" esc($icon, "<>") ">\n"
    wm=	   nstring(level(), "   ") "[restart] ("  esc($title, ")")  ")  {" esc($command, "()") "}\n"
    text=  nstring(level(), "   ") "[exec] (" esc($title, ")") ") { x-terminal-emulator -T \"" $title "\" -e " esc($command, "()") "} <" esc($icon, "<>") ">\n"
    fluxbox= nstring(level(), "   ") "[" esc($command, "()") "] (" esc($title, ")") ")\n"
endsupported

startmenu= ""
submenutitle= nstring(level(), "   ") "[submenu] (" esc($title,"()") ") {" esc($longtitle,"()") "}\n"
endmenu= ifneq( level(), "0",  nstring(level(), "   ") "[end]\n" )