Advertising

Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum Linuxiarze.pl

Author Topic: [SOLVED] Openbox. how to customize menu with Openbox Menu Generator  (Read 146 times)

Offline facciofinta

  • Newbie
  • *
  • Posts: 19
  • Karma: +0/-0
Hi,
without Openbox Menu Generator I have always insert the menu imtes in /home/USERNAME/.config/openbox/menu.xml/ like this:
Code: [Select]
<item label="File Manager">           
<action name="Execute">               
<command> thunar </command>           
</action>       
</item>

where can I add now some customized items?
and if I decide that I don't like the sparkylinux menu (I would like to have without icons) how can restore an original openbox menu?

thanks
« Last Edit: April 04, 2020, 04:11:54 pm by facciofinta »

Offline facciofinta

  • Newbie
  • *
  • Posts: 19
  • Karma: +0/-0
Re: Openbox. how to customize menu with Openbox Menu Generator
« Reply #1 on: April 04, 2020, 09:12:22 am »
Can I add customized menu items in /home/USERNAME/.config/openbox/menu.xml/ or will the Openbox Menu Generator erase them at next openbox start?

Offline facciofinta

  • Newbie
  • *
  • Posts: 19
  • Karma: +0/-0
Re: Openbox. how to customize menu with Openbox Menu Generator
« Reply #2 on: April 04, 2020, 04:11:17 pm »
wow, I've not a big help from community!
However, I've done it.
Look at file ~/.config/obmenu-generator/schema.pl and add an item inserting:
Code: [Select]
{item => ['pmrp-vlc', 'Radio Player', 'radio']},(exec, name, icon)
before the "Default Categories".
There are also a lot of adding possibilities:
http://www.lxlinux.com/obmenu-generator.html

To set a dynamical version of the Root Menu, put the following in the terminal (leaving out "-i" if you want an icon-less menu):
Code: [Select]
    obmenu-generator -p -i
    obmenu-generator -p
(the second one if you don't want the icons, like me!)