#!/usr/bin/perl # obmenu-generator - configuration file # This file will be updated automatically. # Any additional comment and/or indentation will be lost. =for comment || FILTERING | skip_filename_re : Skip a .desktop file if its name matches the regex. Name is from the last slash to the end. (e.g.: name.desktop) Example: qr/^(?:gimp|xterm)\b/, # skips 'gimp' and 'xterm' | skip_entry : Skip a desktop file if the value from a given key matches the regex. Example: [ {key => 'Name', re => qr/(?:about|terminal)/i}, {key => 'Exec', re => qr/^xterm/}, {key => 'OnlyShowIn', re => qr/XFCE/}, ], | substitutions : Substitute, by using a regex, in the values from the desktop files. Example: [ {key => 'Exec', re => qr/xterm/, value => 'tilix', global => 1}, ], || ICON SETTINGS | gtk_version : The version of the Gtk library used for resolving the icon paths. (default: 3) | gtk_rc_filename : Absolute path to the Gtk configuration file. | missing_icon : Use this icon for missing icons (default: gtk-missing-image) | icon_size : Preferred size for icons. (default: 48) | generic_fallback : Try to shorten icon name at '-' characters before looking at inherited themes. (default: 0) | force_icon_size : Always get the icon scaled to the requested size. (default: 0) || PATHS | desktop_files_paths : Absolute paths which contain .desktop files. Example: [ '/usr/share/applications', "$ENV{HOME}/.local/share/applications", glob("$ENV{HOME}/.local/share/applications/wine/Programs/*"), ], || NOTES | Regular expressions: * use qr/.../ instead of '...' * use qr/.../i for case insensitive mode =cut our $CONFIG = { "editor" => "mousepad", "force_icon_size" => 0, "generic_fallback" => 0, "gtk_rc_filename" => "$ENV{HOME}/.config/gtk-3.0/settings.ini", "gtk_version" => 3, "icon_size" => 48, "Linux::DesktopFiles" => { desktop_files_paths => [ "/usr/share/applications", "/usr/local/share/applications", "/usr/share/applications/kde4", "$ENV{HOME}/.local/share/applications", ], keep_unknown_categories => 1, skip_entry => undef, skip_filename_re => undef, substitutions => undef, terminalization_format => "%s -e '%s'", terminalize => 1, unknown_category_key => "other", }, "locale_support" => 1, "missing_icon" => "gtk-missing-image", "terminal" => "xfce4-terminal", "VERSION" => "0.90", }