ALT F1 Gnome Menu on Right Click

Forum rules
Before you post please read how to get help
User avatar
tawan
Level 4
Level 4
Posts: 401
Joined: Thu Apr 03, 2008 2:45 am
Contact:

ALT F1 Gnome Menu on Right Click

Postby tawan » Tue Mar 10, 2009 6:59 am

ALT F1 brings up the Gnome menu - I would LOVE right click to do it ... any ideas how?

(I know XFCE and Fluxbox have it but I would like a Gnome solution as I use Fluxbox a lot then find myself Right clicking in Gnome - I'd just love that gnome menu to pop up on right click)

clemerson
Level 1
Level 1
Posts: 24
Joined: Thu Jul 24, 2008 9:49 pm

Re: ALT F1 Gnome Menu on Right Click

Postby clemerson » Tue Mar 10, 2009 5:20 pm

Yeah, I've done this, but it requires Compiz and an extra utility called "xdotool" to do it.

1. install xdotool, a utility that can execute key strokes (see below)

Code: Select all

sudo apt-get install xdotool

Once it's installed, you can type:

Code: Select all

xdotool key alt+F1

and it'll bring up your main menu. Play around with it a bit if you'd like, it can do lots of cool stuff. See

Code: Select all

man xdotool
for an overview of its functions.

2. Open CompizConfig Settings manager and apply the following settings:
a. General section -> General Options-> "Commands" tab -> Commands: set "Command Line 0" to "xdotool key alt+F1" and go back to main screen.
b. Desktop section -> Viewport Switcher -> "Desktop Based Viewport Switching" tab ->
    Set "Initiate Plugin Action" to "Button3"
    Set "Plugin for Initiate Action" to "core"
    Set "Action name for Initiate" to "run_command0_key"

Now when you right-click on the desktop, it'll bring up the main menu. If you have the main menu as an applet in your panel, it'll just pop it down or up from the panel, and if you remove the menu from your panel it will show the menu from your mouse (as you might expect). If you need to access the Nautilus actions menu (copy, paste, extract, unmount, etc) you can just ctrl-right click on the desktop.

User avatar
tawan
Level 4
Level 4
Posts: 401
Joined: Thu Apr 03, 2008 2:45 am
Contact:

Re: ALT F1 Gnome Menu on Right Click

Postby tawan » Wed Mar 11, 2009 3:06 am

clemerson wrote:Yeah, I've done this, but it requires Compiz and an extra utility called "xdotool" to do it.

Amazed! Thanks it is great :)

That was very involved, I never would have got there alone.


Return to “MATE”