icones no menu Crunchbang

1. icones no menu Crunchbang

adriano vinicius
BrigadeirosRicco

(usa Linux Mint)

Enviado em 25/07/2016 - 18:37h

Procurei muito mas informação sobre o crunchbang é bem difícil de achar, só acho tutorial do openbox pro arch, mas eu queria saber como colocar icones no menu do openbox assim: http://orig05.deviantart.net/fb4e/f/2011/265/b/2/openbox_menu_has_now_icons_by_vermaden-d4ak75a.png
se alguem puder me ajudar, agradeço. :>


  


2. Re: icones no menu Crunchbang

Perfil removido
removido

(usa Nenhuma)

Enviado em 25/07/2016 - 18:51h

Instale o obmenu-generator:
https://github.com/trizen/obmenu-generator

Na época em que usava o #! fiz assim (pode está desatualizado!):

Obmenu-generator

wget https://github.com/trizen/obmenu-generator/archive/0.61.tar.gz
wget http://cpan.metacpan.org/authors/id/T/TR/TRIZEN/Linux-DesktopFiles-0.09.tar.gz
wget http://www.cpan.org/authors/id/S/SM/SMUELLER/Data-Dumper-2.154.tar.gz
tar -xf 0.61.tar.gz
tar -xf Linux-DesktopFiles-0.09.tar.gz
tar -xf Data-Dumper-2.154.tar.gz

cd Linux-DesktopFiles-0.09/
perl Build.PL
./Build
./Build test
sudo ./Build install

cd ../Data-Dumper-2.154/
perl Makefile.PL
make
sudo make install

cd ../obmenu-generator-0.61/
sudo cp -av obmenu-generator /usr/local/bin/
sudo cp -av /usr/share/perl5/vendor_perl/Data /usr/local/share/perl/5.14.2/
mkdir -pv ~/.config/obmenu-generator/
cp -av schema.pl ~/.config/obmenu-generator/

ALternativa para a instalação das dependências do obmenu-generator:

sudo su
# perl -MCPAN -e shell
# install Data::Dump
# install Linux::DesktopFiles
# exit
exit

obmenu-generator -s -i
openbox --reconfigure

---

~/.config/obmenu-generator/schema.pl

#!/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']},
]




3. Re: icones no menu Crunchbang

adriano vinicius
BrigadeirosRicco

(usa Linux Mint)

Enviado em 25/07/2016 - 19:18h

PauloHAC escreveu:

Instale o obmenu-generator:
https://github.com/trizen/obmenu-generator

Na época em que usava o #! fiz assim (pode está desatualizado!):

Obmenu-generator

wget https://github.com/trizen/obmenu-generator/archive/0.61.tar.gz
wget http://cpan.metacpan.org/authors/id/T/TR/TRIZEN/Linux-DesktopFiles-0.09.tar.gz
wget www.cpan.org/authors/id/S/SM/SMUELLER/Data-Dumper-2.154.tar.gz">http://www.cpan.org/authors/id/S/SM/SMUELLER/Data-Dumper-2.154.tar.gz
tar -xf 0.61.tar.gz
tar -xf Linux-DesktopFiles-0.09.tar.gz
tar -xf Data-Dumper-2.154.tar.gz

cd Linux-DesktopFiles-0.09/
perl Build.PL
./Build
./Build test
sudo ./Build install

cd ../Data-Dumper-2.154/
perl Makefile.PL
make
sudo make install

cd ../obmenu-generator-0.61/
sudo cp -av obmenu-generator /usr/local/bin/
sudo cp -av /usr/share/perl5/vendor_perl/Data /usr/local/share/perl/5.14.2/
mkdir -pv ~/.config/obmenu-generator/
cp -av schema.pl ~/.config/obmenu-generator/

ALternativa para a instalação das dependências do obmenu-generator:

sudo su
# perl -MCPAN -e shell
# install Data::Dump
# install Linux::DesktopFiles
# exit
exit

obmenu-generator -s -i
openbox --reconfigure

---

~/.config/obmenu-generator/schema.pl

#!/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']},
]



segue historico do erro

adriano@senhoradriano:~$ wget https://github.com/trizen/obmenu-generator/archive/0.61.tar.gz
--2016-07-25 19:16:49-- https://github.com/trizen/obmenu-generator/archive/0.61.tar.gz
Resolvendo github.com (github.com)... 192.30.253.112
Conectando-se a github.com (github.com)|192.30.253.112|:443... conectado.
A requisição HTTP foi enviada, aguardando resposta... 302 Found
Localização: https://codeload.github.com/trizen/obmenu-generator/tar.gz/0.61 [redirecionando]
--2016-07-25 19:16:54-- https://codeload.github.com/trizen/obmenu-generator/tar.gz/0.61
Resolvendo codeload.github.com (codeload.github.com)... 192.30.253.121
Conectando-se a codeload.github.com (codeload.github.com)|192.30.253.121|:443... conectado.
A requisição HTTP foi enviada, aguardando resposta... 200 OK
Tamanho: não especificada [application/x-gzip]
Salvando em: “0.61.tar.gz.1”

0.61.tar.gz.1 [ <=> ] 18,92K 105KB/s em 0,2s

2016-07-25 19:16:58 (105 KB/s) - “0.61.tar.gz.1” salvo [19371]

adriano@senhoradriano:~$ wget http://cpan.metacpan.org/authors/id/T/TR/TRIZEN/Linux-DesktopFiles-0.09.tar.gz
--2016-07-25 19:17:01-- http://cpan.metacpan.org/authors/id/T/TR/TRIZEN/Linux-DesktopFiles-0.09.tar.gz
Resolvendo cpan.metacpan.org (cpan.metacpan.org)... 23.235.39.192, 199.27.76.129
Conectando-se a cpan.metacpan.org (cpan.metacpan.org)|23.235.39.192|:80... conectado.
A requisição HTTP foi enviada, aguardando resposta... 200 OK
Tamanho: 10268 (10K) [application/x-gzip]
Salvando em: “Linux-DesktopFiles-0.09.tar.gz.1”

Linux-DesktopFiles- 100%[=====================>] 10,03K --.-KB/s em 0,007s

2016-07-25 19:17:04 (1,43 MB/s) - “Linux-DesktopFiles-0.09.tar.gz.1” salvo [10268/10268]

adriano@senhoradriano:~$ wget www.cpan.org/authors/id/S/SM/SMUELLER/Data-Dumper-2.154.tar.gz">http://www.cpan.org/authors/id/S/SM/SMUELLER/Data-Dumper-2.154.tar.gz
--2016-07-25 19:17:10-- www.cpan.org/authors/id/S/SM/SMUELLER/Data-Dumper-2.154.tar.gz">http://www.cpan.org/authors/id/S/SM/SMUELLER/Data-Dumper-2.154.tar.gz
Resolvendo www.cpan.org (www.cpan.org)...
207.171.7.91
Conectando-se a www.cpan.org (www.cpan.org)|207.171.7.91|:80... conectado.
A requisição HTTP foi enviada, aguardando resposta... 200 OK
Tamanho: 100369 (98K) [application/x-gzip]
Salvando em: “Data-Dumper-2.154.tar.gz.1”

Data-Dumper-2.154.t 100%[=====================>] 98,02K 118KB/s em 0,8s

2016-07-25 19:17:15 (118 KB/s) - “Data-Dumper-2.154.tar.gz.1” salvo [100369/100369]

adriano@senhoradriano:~$
adriano@senhoradriano:~$ tar -xf 0.61.tar.gz
adriano@senhoradriano:~$ tar -xf Linux-DesktopFiles-0.09.tar.gz
adriano@senhoradriano:~$ tar -xf Data-Dumper-2.154.tar.gz
adriano@senhoradriano:~$ cd Linux-DesktopFiles-0.09/
adriano@senhoradriano:~/Linux-DesktopFiles-0.09$
adriano@senhoradriano:~/Linux-DesktopFiles-0.09$ perl Build.PL
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Linux-DesktopFiles' version '0.09'
adriano@senhoradriano:~/Linux-DesktopFiles-0.09$ ./Build
Building Linux-DesktopFiles
adriano@senhoradriano:~/Linux-DesktopFiles-0.09$ ./Build test
t/Linux-DesktopFiles.t .. ok
t/pod-coverage.t ........ skipped: Test::Pod::Coverage 1.08 required for testing POD coverage
t/pod.t ................. skipped: Test::Pod 1.22 required for testing POD
All tests successful.
Files=3, Tests=10, 0 wallclock secs ( 0.05 usr 0.02 sys + 0.16 cusr 0.01 csys = 0.24 CPU)
Result: PASS
adriano@senhoradriano:~/Linux-DesktopFiles-0.09$ sudo ./Build install
[sudo] password for adriano:
Building Linux-DesktopFiles
Installing /usr/local/share/perl/5.20.2/Linux/DesktopFiles.pm
Installing /usr/local/man/man3/Linux::DesktopFiles.3pm
adriano@senhoradriano:~/Linux-DesktopFiles-0.09$ cd ../Data-Dumper-2.154/
adriano@senhoradriano:~/Data-Dumper-2.154$ perl Makefile.PL
Generating a Unix-style Makefile
Writing Makefile for Data::Dumper
Writing MYMETA.yml and MYMETA.json
adriano@senhoradriano:~/Data-Dumper-2.154$ make
Skip blib/lib/Data/Dumper.pm (unchanged)
Running Mkbootstrap for Data::Dumper ()
touch: não foi possível tocar “Dumper.bs”: Permissão negada
Makefile:447: recipe for target 'Dumper.bs' failed
make: *** [Dumper.bs] Error 1
adriano@senhoradriano:~/Data-Dumper-2.154$ make
Running Mkbootstrap for Data::Dumper ()
touch: não foi possível tocar “Dumper.bs”: Permissão negada
Makefile:447: recipe for target 'Dumper.bs' failed
make: *** [Dumper.bs] Error 1
adriano@senhoradriano:~/Data-Dumper-2.154$



4. Re: icones no menu Crunchbang

Perfil removido
removido

(usa Nenhuma)

Enviado em 25/07/2016 - 19:57h

Tente só essa parte primeiro:

$ sudo su
# perl -MCPAN -e shell
# install Data::Dump
# install Linux::DesktopFiles
# exit
# exit



5. Re: icones no menu Crunchbang

adriano vinicius
BrigadeirosRicco

(usa Linux Mint)

Enviado em 25/07/2016 - 20:13h

PauloHAC escreveu:

Tente só essa parte primeiro:

$ sudo su
# perl -MCPAN -e shell
# install Data::Dump
# install Linux::DesktopFiles
# exit
# exit


tudo certo e agora?


6. Re: icones no menu Crunchbang

Perfil removido
removido

(usa Nenhuma)

Enviado em 25/07/2016 - 20:28h

Agora...
cd ../obmenu-generator-0.61/
sudo cp -av obmenu-generator /usr/local/bin/
sudo cp -av /usr/share/perl5/vendor_perl/Data /usr/local/share/perl/5.14.2/
(Aqui pode dá um erro, mas não importa)
mkdir -pv ~/.config/obmenu-generator/
cp -av schema.pl ~/.config/obmenu-generator/


Crie e salve este arquivo:
~/.config/obmenu-generator/schema.pl
 #!/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']},
]

Talvez seja necessário personalizar e adaptá-lo ao seu sistema, tirar do arquivo os programas que vc não tem e tal...

Depois de tudo, para gerar o menu use os comandos abaixo:
obmenu-generator -s -i
openbox --reconfigure




7. Re: icones no menu Crunchbang

Perfil removido
removido

(usa Nenhuma)

Enviado em 25/07/2016 - 20:32h

No meu caso ficava assim:
http://imgur.com/a/AITd6


8. Re: icones no menu Crunchbang

adriano vinicius
BrigadeirosRicco

(usa Linux Mint)

Enviado em 25/07/2016 - 20:44h

tudo certo, mas quando fui utilizar o comando

obmenu-generator -s -i
da permissão negada


9. Re: icones no menu Crunchbang

Perfil removido
removido

(usa Nenhuma)

Enviado em 25/07/2016 - 20:49h

BrigadeirosRicco escreveu:

tudo certo, mas quando fui utilizar o comando

obmenu-generator -s -i
da permissão negada


Tenta com sudo.


10. Re: icones no menu Crunchbang

adriano vinicius
BrigadeirosRicco

(usa Linux Mint)

Enviado em 25/07/2016 - 20:51h

tentei com sudo continua permissão negada


root@senhoradriano:/# obmenu-generator -s -i
bash: /usr/local/bin/obmenu-generator: Permissão negada
root@senhoradriano:/home/adriano#


achei isso dentro do arquivo mencionado no comando
die "Update Linux::DesktopFiles to a newer version! (requires >=0.09
oq pode ser?






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts