-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathschema.pl
55 lines (44 loc) · 2.5 KB
/
schema.pl
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/perl
# menutray - schema file
=for comment
item: add an item inside the menu {item => ['command', 'label', 'icon']},
cat: add a category inside the menu {cat => ['name', 'label', 'icon']},
sep: horizontal line separator {sep => undef},
beg: beginning of a submenu {beg => ['name', 'icon']},
end: end of a submenu {end => undef},
menutray: generic menu settings {menutray => ['label', 'icon']},
regenerate: regenerate menu {regenerate => ['label', 'icon']},
exit: quit menu {exit => ['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)
our $SCHEMA = [
# COMMAND LABEL ICON
{item => ['xdg-open .', 'File Manager', 'system-file-manager']},
{item => ['xterm', 'Terminal', 'utilities-terminal']},
{item => ['xdg-open http://', 'Web Browser', 'web-browser']},
{item => ['gmrun', 'Run command', 'system-run']},
{sep => undef},
# NAME LABEL ICON
{cat => ['utility', 'Accessories', 'applications-utilities']},
{cat => ['development', 'Development', 'applications-development']},
{cat => ['education', 'Education', 'applications-science']},
{cat => ['game', 'Games', 'applications-games']},
{cat => ['graphics', 'Graphics', 'applications-graphics']},
{cat => ['audiovideo', 'Multimedia', 'applications-multimedia']},
{cat => ['network', 'Network', 'applications-internet']},
{cat => ['office', 'Office', 'applications-office']},
{cat => ['other', 'Other', 'applications-other']},
{cat => ['settings', 'Settings', 'applications-accessories']},
{cat => ['system', 'System', 'applications-system']},
# LABEL ICON
#{beg => ['My submenu', 'submenu-icon']},
#...some items here...#
#{end => undef},
{menutray => ['Menutray', 'preferences-desktop']},
{sep => undef},
{regenerate => ['Regenerate', 'gtk-refresh']},
{exit => ['Exit', 'application-exit']},
];