-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.pl
133 lines (109 loc) · 5.43 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
##!/usr/bin/perl
##
## SCHEMA supports the following keys: item, cat, begin_cat, end_cat,
## exit, raw, sep, obgenmenu
##
## Modified by Carl Duff.
=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: menu line separator
{sep => undef} or {sep => "label"}
exit: default "Exit" action
{exit => ["label", "icon"]}
raw: any valid Openbox XML string
{raw => q(xml string)},
obgenmenu: category provided by obmenu-generator
{obgenmenu => "label"}
scripts: executable scripts from a directory
{scripts => ["/my/dir", BOOL, "icon"]}
BOOL - can be either true or false (1 or 0)
0 == open the script in background
1 == open the script in a new terminal
wine_apps: windows applications installed via wine
{wine_apps => ["label", "icon"]}
=cut
# NOTE:
# * Keys and values are case sensitive. Keep all keys lowercase.
# * ICON can be a either a direct path to a icon or a valid icon name
# * By default, category names are case insensitive. (e.g.: X-XFCE == x_xfce)
require '/home/trey/.config/obmenu-generator/config.pl';
our $SCHEMA = [
# COMMAND LABEL ICON
{sep => m3nu},
{item => ['gmrun', 'Run...','xkill']},
{item => ['lxterminal', 'lxTerminal','xterm']},
{item => ['xfce4-terminal', 'XFterm','xfce4-terminal']},
{item => ['pcmanfm', 'PCmanFM','pcmanfm']},
{item => ['chromium', 'Chrome','chromium']},
{item => ['geany', 'Geany','geany']},
{item => ['keepassx', 'KeepassX','keepassx']},
{item => ['nitrogen', 'Nitrogen','nitrogen']},
{sep => undef},
# NAME LABEL ICON
{cat => ['utility', 'Apps', 'applications-utilities']},
{cat => ['development', 'Dev', '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 => ['settings', 'Settings', 'applications-accessories']},
## Custom "Advanced Menu"
{begin_cat => ['OB Setts', 'gnome-settings']},
{begin_cat => ['Desktop and Login', '/usr/share/icons/Faenza/apps/48/dconf-editor.png']},
{item => ['geany -m ~/.conkyrc','Conky RC','geany']},
{item => ['geany -m ~/.config/tint2/tint2rc','Tint2 Panel','geany']},
{item => ['gksu geany /etc/slim.conf','Slim Configuration','geany']},
{item => ['geany -m ~/.xinitrc','.xinitrc','geany']},
{item => ['geany -m ~/.xprofile','.xprofile','geany']},
{end_cat => undef},
{begin_cat => ['Edit Menu', '/usr/share/icons/Faenza/apps/48/menu-editor.png']},
{item => ['geany -m ~/.config/obmenu-generator/schema.pl','Pipe Menu Schema','geany']},
{item => ['geany -m ~/.config/obmenu-generator/config.pl','Pipe Menu Config','geany']},
{item => ['obmenu-generator -d','Refresh Icon Set','/usr/share/icons/Faenza/apps/48/application-default-icon.png']},
{end_cat => undef},
{begin_cat => ['Openbox', 'openbox']},
{item => ['openbox --reconfigure','Reconfigure Openbox','openbox']},
{item => ['lxappearance','obConf?','obconf']},
{item => ['geany -m ~/.config/openbox/autostart','Openbox Autostart','geany']},
{item => ['geany -m ~/.config/openbox/rc.xml','Openbox RC','geany']},
{item => ['geany -m ~/.config/openbox/menu.xml','Openbox Menu','geany']},
{item => ['gksu geany /etc/oblogout.conf','Openbox Logout','geany']},
{end_cat => undef},
{begin_cat => ['Pacman / Servers', '/usr/share/icons/Faenza/apps/48/package-manager-icon.png']},
{item => ['lxterminal -e sudo ~/.config/executables/change-repo.sh','Switch stable, testing and unstable repos','lxterminal']},
{item => ['gksu geany /etc/pacman.conf','Pacman Config','geany']},
{item => ['gksu geany /etc/pacman.d/mirrorlist','Pacman Mirrorlist','geany']},
{end_cat => undef},
{end_cat => undef},
## Back to standard pipe-menu
{cat => ['system', 'System', 'applications-system']},
{sep => skriptz},
{item => ['openbox --reconfigure','Rld Openbox->','openbox']},
#{item => ['killall conky','<-Kill Conky->','xkill']},
{item => ['/home/trey/skr1ptz/rldConky', 'Rld Conky ->', "xkill"]},
#{item => ['conky','- Run Conky -','conky']},
{sep => undef},
## Use Oblogout script instead of simple exit command
{item => ['xlock -mode blank', 'Lock Screen', 'lock']},
{item => ['oblogout', 'Logout...', 'exit']},
{sep => undef},
{begin_cat => ['Other Apps', 'gnome-settings']},
{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']},
{cat => ['Wine apps', 'applications-other']},
{end_cat => undef},
# LABEL ICON
#{wine_apps => ['Wine apps', 'applications-other']},
]