How to display the LXDE desktop menu with a command

Please post all general support questions for LXDE here.
Locked
Didier Spaier
Posts: 2
Joined: Thu Mar 16, 2017 10:50 pm

How to display the LXDE desktop menu with a command

Post by Didier Spaier »

Hi there,

I am using LXDE (most recent stable version of all components) with FVWM (not Openbox) as window manager and chose to display a FVWM menu instead of the LXDE menu when I click on an empty space on the desktop.

So far, so good. Now, I would like to include in this FVWM menu an entry to the LXDE menu as a pop up sub-menu.

For that I need to know a command allowing to bring up the LXDE menu, instead of using of a mouse click.

Is it possible and what would be this command?

Didier
Last edited by Didier Spaier on Fri Jul 14, 2017 10:11 pm, edited 1 time in total.
seppalta
Posts: 449
Joined: Tue Sep 20, 2011 6:09 am
Location: USA
Contact:

Re: How to diplay the LXDE desktop menu with a command

Post by seppalta »

The normal command to launch the lxde menu is lxpanelctl menu, which requires lxpanel be installed. There are various pipe-menus, for example, openbox-menu (http://lxlinux.com/openbox.html), that can be also used to launch it and other menus as well, but I do not know if they work for FVWM. Menu-tray (http://lxlinux.com/menutray.html) is a nice menu that sits in the tray and is essentially the same as the lxde menu. Fbpanel (http://lxlinux.com/fbpanel.html) comes with its own menu.
Didier Spaier
Posts: 2
Joined: Thu Mar 16, 2017 10:50 pm

Re: How to display the LXDE desktop menu with a command

Post by Didier Spaier »

Thanks for your answer.

However I am not speaking about the menu that can be included in lxpanel, but the one that pops up when right clicking on the desktop, that I can change editing (in Slint, Linux distribution based on Slackware, cf. http://slint.fr) the file ~/.config/pcmanfm/LXDE/desktop-items-0.conf.

If I include in this file this line:

Code: Select all

show_wm_menu=0
when I right-click on an empty space on the desktop I see the menu from LXDE:
Image

If I include this line instead:

Code: Select all

show_wm_menu=1
I see the a fvwm menu that I have customized:
Image

What I would like to do is include it this FVWM menu an entry for the LXDE menu above, and to do that I need to know a command to display it.

EDIT: to be accurate and as seen in the above pic I can include a menu entry for "Desktop preferences" in the fvwm config file with this line:

Code: Select all

+  "Desktop preferences...%/usr/share/icons/nuvola/16x16/places/user-desktop.png%" Exec exec pcmanfm --desktop-pref
but I don't know how to integrate the other entries like "Create new..." or "Sort files".

---

For your information this is a preview of the future LXDE + FVWM in Slint:
Image
seppalta
Posts: 449
Joined: Tue Sep 20, 2011 6:09 am
Location: USA
Contact:

Re: How to display the LXDE desktop menu with a command

Post by seppalta »

To create a new folder, the command would be the following:

Code: Select all

xdotool key "shift+ctrl+n"
Of course xdotool (very lightweight) has to be installed.

I have trouble imagining why you want Sort Files in a menu since it is a command that applies to the files in a directory, which means the directory is already open (presumably in pcmanfm) and you can sort files with View>Sort Files in pcmanfm's heading. I have never used it directly on the desktop since I don't use desktop shortcuts to need it. Do any of its commands do anything on the desktop?

Furthermore, there are 9 items in Sort Files, each of which has its own command. See View>Sort Files in pcmanfm's heading to get the keyboard commands for 5 of these, which could be put in your menu using xdotool as described above. Presumably keyboard commands could be constructed as well for the other four. To me, putting 9 such entries in your menu to do such insignificant tasks is a bit superfluous, but,of course, everyone to his own. :D
Locked