Advertisement
edps

fbmenugen-schema.pl

Jun 18th, 2015
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 3.46 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. # fbmenugen - schema file
  4.  
  5. =for comment
  6.  
  7. item: add an item into the menu
  8.  
  9.     {item => ["command", "label", "icon"]}
  10.  
  11.  
  12. cat: add a category into the menu
  13.  
  14.     {cat => ["name", "label", "icon"]}
  15.  
  16.  
  17. begin_cat: begin of a category
  18.  
  19.     {begin_cat => ["name", "icon"]}
  20.  
  21.  
  22. end_cat: end of a category
  23.  
  24.     {end_cat => undef}
  25.  
  26.  
  27. sep: horizontal line separator
  28.  
  29.     {sep => undef}
  30.  
  31.  
  32. exit: default "Exit" action
  33.  
  34.     {exit => ["label", "icon"]}
  35.  
  36.  
  37. raw: any valid fluxbox menu entry
  38.  
  39.     {raw => q(...)},
  40.     {raw => q([exec] (Geeqie) {geeqie -r } </usr/share/pixmaps/geeqie.png>)},
  41.  
  42.  
  43. fbmenugen: category provided by fbmenugen
  44.  
  45.     {fbmenugen => ["label", "icon"]}
  46.  
  47.  
  48. fluxbox: the default fluxbox config menu
  49.  
  50.     {fluxbox => ["label", "icon"]}
  51.  
  52. =cut
  53.  
  54. # NOTE:
  55. #    * Keys and values are case sensitive. Keep all keys lowercase.
  56. #    * ICON can be a either a direct path to an icon or a valid icon name
  57. #    * Category names are case insensitive. (X-XFCE and x_xfce are equivalent)
  58.  
  59. require '/home/edps/.config/fbmenugen/config.pl';
  60.  
  61. our $SCHEMA = [
  62.     #          COMMAND             LABEL                ICON
  63.     {item => ['xfce4-screenshooter',             'Captura de tela',          '/usr/share/icons/Moka/48x48/apps/applets-screenshooter.png']},
  64.     {item => ['leafpad',             'Editor de Texto',          'leafpad']},
  65.     {item => ['thunar',        'Gerenciador de Arquivos',      'file-manager']},
  66.     {item => ['opera',    'Navegador Web',       'web-browser']},
  67.     {item => ['sakura',             'Terminal',          'terminal']},
  68.     {sep => undef},
  69.     {item => ['gmrun',             'Executar comando...',       'system-run']},
  70.  
  71.     {sep => 'undef'},
  72.  
  73.     #          NAME            LABEL                ICON
  74.     {cat => ['utility',     'Acessórios', 'applications-utilities']},
  75.     {cat => ['settings',    'Configurações',    'applications-accessories']},
  76.     {cat => ['development', 'Desenvolvimento', 'applications-development']},
  77.     #{cat => ['education',   'Educativos',   'applications-science']},
  78.     {cat => ['office',      'Escritório',      'applications-office']},
  79.     {cat => ['graphics',    'Gráficos',    'applications-graphics']},
  80.     {cat => ['network',     'Internet',     'applications-internet']},
  81.     {cat => ['game',        'Jogos',       'applications-games']},
  82.     {cat => ['audiovideo',  'Multimídia',  'applications-multimedia']},
  83.     {cat => ['other',       'Outros',       'applications-other']},
  84.     {cat => ['system',      'Sistema',      'applications-system']},
  85.  
  86.     #{cat => ['qt',          'QT Applications',    'qtlogo']},
  87.     #{cat => ['gtk',         'GTK Applications',   'gnome-applications']},
  88.     #{cat => ['x_xfce',      'XFCE Applications',  'applications-other']},
  89.     #{cat => ['gnome',       'GNOME Applications', 'gnome-applications']},
  90.     #{cat => ['consoleonly', 'CLI Applications',   'applications-utilities']},
  91.  
  92.     #                  LABEL          ICON
  93.     #{begin_cat => ['My category',  'cat-icon']},
  94.     #             ... some items ...
  95.     #{end_cat   => undef},
  96.  
  97.     #                  LABEL               ICON
  98.     {sep => undef},
  99.     {fbmenugen  => ['FBMenuConf',   'preferences-desktop']},
  100.     {fluxbox    => ['Fluxbox menu', 'package_settings']},
  101.     {sep        => undef},
  102.     {regenerate => ['Atualizar menu...',     'gtk-refresh']},
  103.  
  104.     # This options uses the default Fluxbox action "Exit"
  105.     {exit       => ['Exit',           'exit']},
  106. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement