obmenu-generator у меня в /usr/bin/,
кроме того подстройте под себя (или создайте, если его нет) файл
/home/user/.config/obmenu-generator/configuration.pl:
#!/usr/bin/perl
my %items = (
terminal => 'lxterminal',
editor => 'geany',
file_manager => 'spacefm',
web_browser => 'chromium',
run_command => 'gmrun',
lock_command => 'slock',
# Giving this an undef value don't hides the menuitem
# but uses the default OpenBox action "Exit"
exit_command => 'openbox-logout',
);
our $CONFIG = {
# Example: [ "$ENV{'HOME'}/.local/share/applications", '/my/path' ]
desktop_files_paths => ['/usr/share/applications'],
# File where to look for icon theme (default: ~/.gtkrc-2.0)
gtk_rc_file => undef,
# When 'Terminal=true'
open_in_terminal => "$items{terminal} -e %s",
# Editor command
open_in_editor => "$items{editor}",
# Ignore desktop files if their filenames match a regex
ignore_file_name_re => undef,
# Ignore applications if their names match a regex
ignore_app_name_re => undef,
# Ignore applications if their commands match a regex
ignore_app_command_re => undef,
# Ignore desktop files if their content match a regex
ignore_file_content_re => undef,
# Remove from every command something matched by a regex (/g)
command_rem_re => undef,
# Look in this directories first (when generating icons.db)
dirs_first_to_look => [],
# Look in this directories as a second icon theme (when generating icons.db)
dirs_middle_to_look => [],
# Look in this directories, as a backup plan (when generating icons.db)
dirs_last_to_look => [],
};
our $SCHEMA = [
# COMMAND LABEL ICON
{item => [$items{file_manager}, 'File Manager', 'file-manager']},
{item => [$items{terminal}, 'Terminal', 'terminal']},
{item => [$items{editor}, 'Editor', 'text-editor']},
{item => [$items{web_browser}, 'Web Browser', 'web-browser']},
{item => [$items{run_command}, 'Run command', 'system-run']},
{sep => 'Applications'},
# 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 => ['settings', 'Settings', 'applications-accessories']},
{cat => ['system', 'System', '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']},
{submenu => 'Openbox Settings'},
{sep => undef},
{item => [$items{lock_command}, 'Lock', 'slock']},
{exit => [$items{exit_command}, 'Exit', 'openbox-logout']},
];