obmenu-generator (schema.pl)
Esquema para gerar menu no Openbox
Categoria: Miscelânea
Software: obmenu-generator
[ Hits: 6.264 ]
Por: Perfil removido
Para quem deseja criar um menu com ícones no Openbox e optou por instalar o obmenu-generator, aqui tem um esquema personalizado que eu uso no meu CrunchBang.
#!/usr/bin/perl # obmenu-generator - 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}, {sep => "label"}, pipe: a pipe menu entry {pipe => ["command", "label", "icon"]}, raw: any valid Openbox XML string {raw => q(xml string)}, begin_cat: begin of a category {begin_cat => ["name", "icon"]}, end_cat: end of a category {end_cat => undef}, obgenmenu: generic menu settings {obgenmenu => ["label", "icon"]}, exit: default "Exit" action {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) require "$ENV{HOME}/.config/obmenu-generator/config.pl"; ## Text editor my $editor = $CONFIG->{editor}; our $SCHEMA = [ {sep => 'Menu Openbox'}, {item => ['gmrun', 'Executar Comando', 'system-run']}, {sep => undef}, # COMMAND LABEL ICON {item => ['geany', 'Editor de Texto', 'accessories-text-editor']}, {item => ['thunar', 'Gerenciador de Arquivos', 'file-manager']}, {item => ['x-www-browser', 'Navegador Web', 'web-browser']}, {item => ['x-terminal-emulator', 'Terminal', 'terminal']}, {sep => 'Aplicativos'}, # NAME LABEL ICON {cat => ['utility', 'Acessórios', 'applications-utilities']}, #{cat => ['development', 'Desenvolvimento', 'applications-development']}, {cat => ['education', 'Educativos', 'applications-science']}, {cat => ['office', 'Escritório', 'applications-office']}, {cat => ['graphics', 'Gráficos', 'applications-graphics']}, {cat => ['network', 'Internet', 'applications-internet']}, {cat => ['game', 'Jogos', 'applications-games']}, {cat => ['audiovideo', 'Multimídia', 'applications-multimedia']}, #{cat => ['other', 'Outros', 'applications-other']}, {sep => 'Arquivos'}, # COMMAND LABEL ICON {pipe => ['cb-recent-files-pipemenu', 'Arquivos Recentes', 'document-open-recent']}, {pipe => ['cb-places-pipemenu', 'Pasta Pessoal', 'folder-home']}, {pipe => ['obdevicemenu', 'Dispositivos', 'harddrive']}, ## Custom advanced settings. {sep => 'Sistema'}, {begin_cat => ['Configurações', 'gnome-settings']}, # obmenu-generator category. {begin_cat => ['Obmenu-Generator', 'menu-editor']}, {item => ["$editor ~/.config/obmenu-generator/schema.pl", 'Menu Schema', $editor]}, {item => ["$editor ~/.config/obmenu-generator/config.pl", 'Menu Config', $editor]}, {sep => undef}, {item => ['obmenu-generator -p', 'Generate a pipe menu', 'menu-editor']}, {item => ['obmenu-generator -s', 'Generate a static menu', 'menu-editor']}, {item => ['obmenu-generator -p -i', 'Generate a pipe menu with icons', 'menu-editor']}, {item => ['obmenu-generator -s -i', 'Generate a static menu with icons', 'menu-editor']}, {sep => undef}, {item => ['obmenu-generator -d', 'Refresh Icon Set', 'gtk-refresh']}, {end_cat => undef}, # Openbox category. {begin_cat => ['Openbox', 'openbox']}, {item => ["$editor ~/.config/openbox/autostart", 'Editar autostart', $editor]}, {item => ["$editor ~/.config/openbox/menu.xml", 'Editar menu.xml', $editor]}, {item => ["$editor ~/.config/openbox/rc.xml", 'Editar rc.xml', $editor]}, {item => ['obconf', 'OpenBox Configuration Manager', 'obconf']}, {item => ['openbox --reconfigure', 'Reconfigurar Openbox', 'openbox']}, {end_cat => undef}, # Settings tools {cat => ['settings', 'Sistema', 'applications-system']}, # Configuration files. {item => ["lxappearance", 'Personalizar Visual', 'preferences-desktop-theme']}, {item => ["$editor ~/.conkyrc", 'Editar conkyrc', $editor]}, {item => ["$editor ~/.config/tint2/tint2rc", 'Editar tint2rc', $editor]}, {item => ['nitrogen ~/Imagens/wallpapers', 'Trocar Wallpaper', 'nitrogen']}, {item => ['gksudo slimconf', 'Slimconf (Tela de Logon)', 'system-users']}, {end_cat => undef}, {cat => ['system', 'Ferramentas de Sistema', 'applications-system']}, # VirtualBox menu {pipe => ['cb-virtual-machines-pipemenu', 'Máquinas Virtuais', 'virtualbox']}, {sep => undef}, ## The xscreensaver lock command. {item => ['cb-lock', 'Bloquear Tela', 'lock']}, # Replace the standard Openbox's action "Exit" with "obsession" script. #{exit => ['Exit', 'exit']}, {item => ['cb-exit', 'Sair', 'system-log-out']}, ]
Curiosidade sobre DOOM Guy e Isabelle de Animal Crossing
Inicializando servidor Ubuntu na AWS e rodando apache em Container
DOOM mais fácil que atacar imp pelas costas
Atualizar o macOS no Mac - Opencore Legacy Patcher
Crie alias para as tarefas que possuam longas linhas de comando - bash e zsh
Deixando o Gnome com a aparência do MacOS
Tire fotos da tela do navegador com a extensão Fireshot
Fazendo comparações no shell com números de ponto flutuante
checar badblocks fez meu pc quebrar mas foi resolvido? (13)
rodar rockylinux no virtualbox (10)
compactação de arquivos com algoritmo lzip e lzma (6)
Quando faço login do usuário aparece apenas o papel de parede e o mous... (6)