Author Topic: How To: Main Menu Icons NOT in a Submenu  (Read 689 times)

Offline princethrash

  • Jr. Member
  • **
  • Posts: 22
How To: Main Menu Icons NOT in a Submenu
« on: February 08, 2012, 07:59:05 PM »
Some time ago I emailed the author of LXmed (LXmenu Editor).  He said he would include this technique in a future release:  the ability to simply add items to the Lxpanel main menu, NOT in a submenu!  I've also posted this/got help from LXDE's forums, but I wanted to spread it around for the species of reptilian ground-dweller who uses LXDE.

Here's a mini tutorial on how to get something like this for your main menu:



Doing this could not be easier, or handier for customization compulsives.

Step 1

Go to ~/.config/lxpanel/LXDE/panels and open the configuration file "panel"
Laugh at the suggestion at the top of the file advising you not to change it.

Step 2

Change the "plugins" section to refer DIRECTLY to your programs of choice.  Here is my full plugins section for ease:

Code: [Select]
Plugin {
    type = menu
    Config {
        image=/home/churly/Pictures/multi-start.png
        item {
            action=xfe
            image=/home/churly/Pictures/startmenu/mainmenu-stable-cyan2.png
            name=Files
        }
        item {
            action=chromium
            image=/home/churly/Pictures/startmenu/mainmenu-stable-cyan2.png
            name=Web
        }
        item {
            action=leafpad
            image=/home/churly/Pictures/startmenu/mainmenu-stable-cyan2.png
            name=Write
        }
        item {
            action=deluge
            image=/home/churly/Pictures/startmenu/mainmenu-stable-cyan2.png
            name=Torrent
        }
        item {
            action=lostirc
            image=/home/churly/Pictures/startmenu/mainmenu-stable-cyan2.png
            name=Chat
        }
        item {
            action=mtpaint
            image=/home/churly/Pictures/startmenu/mainmenu-stable-cyan2.png
            name=Draw
        }
        item {
            action=lxterminal
            image=/home/churly/Pictures/startmenu/mainmenu-stable-cyan2.png
            name=Terminal
        }
        system {
        }
    }
}


So if these are not obvious:

action = the command you want to run
image = path to a custom picture
name = the name you want to appear on the main menu

Please notice after the custom entries, there is a "system" entry.  I believe this allows new programs to show up on the main menu, but they will not be pretty, they will resurrect the submenus, and will in general destroy the beautiful plainness.  So if you don't want programs appearing AT ALL on the main menu after they are installed/upgraded, just remove the "system" entry, and you will have complete, manual control over your main menu.

Make your changes and save the file.  You may have wanted to back up that file first.  Too late now!

Step 3

Run the command:
lxpanelctl restart

This should be enough to refresh your new main menu.  There's also:
openbox --reconfigure
But neither that, nor a reset, should be necessary.

Step 4

Optional: Use LXmed to delete, or make invisible, entries/menus that you want to tweak, especially if you are choosing to keep "system". 

Step 5

Tell princethrash how to add a colored border around his main menu, because he obviously doesn't know.


Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8589
  • Aurum nostrum non est aurum vulgi.
Re: How To: Main Menu Icons NOT in a Submenu
« Reply #1 on: February 08, 2012, 10:05:55 PM »
Thumbs up, princethrash.

I'm not really an LXDE user but I'm certain your how to will be useful to other LXDE users.

I'm still wondering about the "thrash" before the prince. Is it in any way related to metal?

Peace and much respect,
Archie
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline Rudge

  • Hero Member
  • *****
  • Posts: 9686
  • I'm Just A Dog.
Re: How To: Main Menu Icons NOT in a Submenu
« Reply #2 on: February 08, 2012, 11:27:08 PM »
This is pretty awesome!

I personally think it should be in the "Advanced Users Section".

This stuff should not be in the hands of people that can't navigate to a .hidden folder.  :D


-If you wish to make an apple pie from scratch, you must first invent the universe-  Carl Sagan

Offline princethrash

  • Jr. Member
  • **
  • Posts: 22
Re: How To: Main Menu Icons NOT in a Submenu
« Reply #3 on: February 09, 2012, 11:10:48 AM »
Glad you guys like it, hopefully this will stop someone from scratching their eyeballs out, as the problem did for me. 

Archie, I do like metal, but when I came up with that name it was independent of metal, I just like the way it hurts the jaw when said aloud.

As all true names should.

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8589
  • Aurum nostrum non est aurum vulgi.
Re: How To: Main Menu Icons NOT in a Submenu
« Reply #4 on: February 10, 2012, 08:15:53 AM »
Archie, I do like metal, but when I came up with that name it was independent of metal, I just like the way it hurts the jaw when said aloud.

As all true names should.

I know exactly what you mean. I've always thought of changing my forum nick to hash-bang-bin-bash but I'd just be shooting myself. ;)
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42