Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know how to set Super_L (WinKey) button to open the Menu.

gconftool-2 --set /apps/metacity/global_keybindings/panel_main_menu --type string "Super_L"

Currently, in order to close that menu, I am having to mouse click outside the menu area. I need to use the Super_L as a toggle button—pressing one time would open and pressing second time would close.

So what I need now is to be able to close it when pressing it second time?

share|improve this question
up vote 1 down vote accepted

(Edit) After having re-read the post and doing a bit more research into the subject, I found out my suggestion is a bit... stupid. But, I'll leave it here in case anyone finds inspiration from it in a similar venture.

Try writing as small script called toggle.sh, put it somewhere.

if `panel_is_open`


if [ `cat panel` == "on" ]; then
    echo 'off' > panel
    echo 'on' > panel

Something along those lines Then after --set use /path/to/toggle.sh

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.