Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/perl
- # fbmenugen - schema file
- =for comment
- item: add an item into the menu
- {item => ["command", "label", "icon"]}
- cat: add a category into the menu
- {cat => ["name", "label", "icon"]}
- begin_cat: begin of a category
- {begin_cat => ["name", "icon"]}
- end_cat: end of a category
- {end_cat => undef}
- sep: horizontal line separator
- {sep => undef}
- exit: default "Exit" action
- {exit => ["label", "icon"]}
- raw: any valid fluxbox menu entry
- {raw => q(...)},
- {raw => q([exec] (Geeqie) {geeqie -r } </usr/share/pixmaps/geeqie.png>)},
- fbmenugen: category provided by fbmenugen
- {fbmenugen => ["label", "icon"]}
- fluxbox: the default fluxbox config menu
- {fluxbox => ["label", "icon"]}
- =cut
- # NOTE:
- # * Keys and values are case sensitive. Keep all keys lowercase.
- # * ICON can be a either a direct path to an icon or a valid icon name
- # * Category names are case insensitive. (X-XFCE and x_xfce are equivalent)
- require '/home/edps/.config/fbmenugen/config.pl';
- our $SCHEMA = [
- # COMMAND LABEL ICON
- {item => ['xfce4-screenshooter', 'Captura de tela', '/usr/share/icons/Moka/48x48/apps/applets-screenshooter.png']},
- {item => ['leafpad', 'Editor de Texto', 'leafpad']},
- {item => ['thunar', 'Gerenciador de Arquivos', 'file-manager']},
- {item => ['opera', 'Navegador Web', 'web-browser']},
- {item => ['sakura', 'Terminal', 'terminal']},
- {sep => undef},
- {item => ['gmrun', 'Executar comando...', 'system-run']},
- {sep => 'undef'},
- # NAME LABEL ICON
- {cat => ['utility', 'Acessórios', 'applications-utilities']},
- {cat => ['settings', 'Configurações', 'applications-accessories']},
- {cat => ['development', 'Desenvolvimento', 'applications-development']},
- #{cat => ['education', 'Educativos', 'applications-science']},
- {cat => ['office', 'Escritório', 'applications-office']},
- {cat => ['graphics', 'Gráficos', 'applications-graphics']},
- {cat => ['network', 'Internet', 'applications-internet']},
- {cat => ['game', 'Jogos', 'applications-games']},
- {cat => ['audiovideo', 'Multimídia', 'applications-multimedia']},
- {cat => ['other', 'Outros', 'applications-other']},
- {cat => ['system', 'Sistema', 'applications-system']},
- #{cat => ['qt', 'QT Applications', 'qtlogo']},
- #{cat => ['gtk', 'GTK Applications', 'gnome-applications']},
- #{cat => ['x_xfce', 'XFCE Applications', 'applications-other']},
- #{cat => ['gnome', 'GNOME Applications', 'gnome-applications']},
- #{cat => ['consoleonly', 'CLI Applications', 'applications-utilities']},
- # LABEL ICON
- #{begin_cat => ['My category', 'cat-icon']},
- # ... some items ...
- #{end_cat => undef},
- # LABEL ICON
- {sep => undef},
- {fbmenugen => ['FBMenuConf', 'preferences-desktop']},
- {fluxbox => ['Fluxbox menu', 'package_settings']},
- {sep => undef},
- {regenerate => ['Atualizar menu...', 'gtk-refresh']},
- # This options uses the default Fluxbox action "Exit"
- {exit => ['Exit', 'exit']},
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement