iso-profiles/mabox-pl/desktop-overlay/etc/skel/.config/obmenu-generator/config.pl
2019-11-01 17:22:26 +01:00

80 lines
3.8 KiB
Perl

#!/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 => 'sakura', global => 1},
],
|| ICON SETTINGS
| 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" => "geany",
"force_icon_size" => 0,
"generic_fallback" => 0,
"gtk_rc_filename" => "$ENV{HOME}/.gtkrc-2.0",
"icon_size" => 48,
"Linux::DesktopFiles" => {
desktop_files_paths => ["/usr/share/applications"],
gtk_rc_filename => "$ENV{HOME}/.gtkrc-2.0",
icon_dirs_first => ["/usr/share/icons/Numix-Square"],
icon_dirs_last => undef,
icon_dirs_second => undef,
keep_unknown_categories => 1,
skip_entry => [
{
key => "Exec",
re => qr/^xfce4-|^exo-open|^xdotool|^obtheme|^globaltime|^pcmanfm --desktop-pref/,
},
],
skip_filename_re => qr/^(?:xfce4-about|compton|manjaro-settings-manager-gtk|pcmanfm|oblogout|gnome-terminal)\b/,
skip_svg_icons => 0,
strict_icon_dirs => undef,
substitutions => undef,
terminalization_format => "%s -e '%s'",
terminalize => 1,
unknown_category_key => "other",
},
"locale_support" => 1,
"missing_icon" => "gtk-missing-image",
"terminal" => "exo-open --launch TerminalEmulator",
"VERSION" => 0.84,
}