Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

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

1 Answer 1

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, 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/

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.