Keyboard Shortcut for Application Menu - How?
Keyboard Shortcut for Application Menu - How?
Hello, i would like to know if there is a keyboard shortcut to launch the main menu,
i am using Mint 11 with LXDE added, i downloaded something called obkey to assign it
but i dont know what to put in it, i can add a shortcut using that with an execute tag,
but what would i type to launch the main menu as if i had pressed the "Menu" button?
Thanks.
i am using Mint 11 with LXDE added, i downloaded something called obkey to assign it
but i dont know what to put in it, i can add a shortcut using that with an execute tag,
but what would i type to launch the main menu as if i had pressed the "Menu" button?
Thanks.
Re: Application Menu How?
I think the command is;
Code: Select all
lxpanelctl menu
Re: Application Menu How?
mike555 wrote:I think the command is;Code: Select all
lxpanelctl menu
Code: Select all
lxpanelctl menu
Feel Free to contact me: http://amjjawad.net
-
- Posts: 116
- Joined: Tue Nov 11, 2008 4:51 pm
Re: Application Menu How?
adding the following to ~/.config/openbox/lxde-rc.xml worked for me (shortcut is Alt-m)
Code: Select all
<!-- ****************************************************** -->
<keybind key="A-m">
<action name="Execute">
<command>lxpanelctl menu</command>
</action>
</keybind>
<!-- ****************************************************** -->
Geology - It's not rocket science, it's rock science!
Re: Application Menu How?
rockdoctor, I see lots of lines inside that file so where exactly shall I add the above code? I'd like to test that myself and see what will happenrockdoctor wrote:adding the following to ~/.config/openbox/lxde-rc.xml worked for me (shortcut is Alt-m)Code: Select all
<!-- ****************************************************** --> <keybind key="A-m"> <action name="Execute"> <command>lxpanelctl menu</command> </action> </keybind> <!-- ****************************************************** -->
Does it matter where to place it inside that file?
Feel Free to contact me: http://amjjawad.net
-
- Posts: 34
- Joined: Sat Sep 10, 2011 11:31 am
Re: Application Menu How?
For me the best is the end of keyboard section, becouse it's easy to find;) but you can place it anywhere you want in keyboard section.
Re: Application Menu How?
LXNevermind wrote:For me the best is the end of keyboard section, becouse it's easy to find;) but you can place it anywhere you want in keyboard section.
Code: Select all
<keyboard><chainQuitKey>C-g</chainQuitKey><!-- Keybindings for desktop switching --><keybind key="C-A-Left"><action name="DesktopLeft"><dialog>no</dialog><wrap>no</wrap></action></keybind><keybind key="C-A-Right"><action name="DesktopRight"><dialog>no</dialog><wrap>no</wrap></action></keybind><keybind key="C-A-Up"><action name="DesktopUp"><dialog>no</dialog><wrap>no</wrap></action></keybind><keybind key="C-A-Down"><action name="DesktopDown"><dialog>no</dialog><wrap>no</wrap></action></keybind><keybind key="S-A-Left"><action name="SendToDesktopLeft"><dialog>no</dialog><wrap>no</wrap></action></keybind><keybind key="S-A-Right"><action name="SendToDesktopRight"><dialog>no</dialog><wrap>no</wrap></action></keybind><keybind key="S-A-Up"><action name="SendToDesktopUp"><dialog>no</dialog><wrap>no</wrap></action></keybind><keybind key="S-A-Down"><action name="SendToDesktopDown"><dialog>no</dialog><wrap>no</wrap></action></keybind><keybind key="W-F1"><action name="Desktop"><desktop>1</desktop></action></keybind><keybind key="W-F2"><action name="Desktop"><desktop>2</desktop></action></keybind><keybind key="W-F3"><action name="Desktop"><desktop>3</desktop></action></keybind><keybind key="W-F4"><action name="Desktop"><desktop>4</desktop></action></keybind><keybind key="W-d"><action name="ToggleShowDesktop"/></keybind><!-- Keybindings for windows --><keybind key="A-F4"><action name="Close"/></keybind><keybind key="A-Escape"><action name="Lower"/><action name="FocusToBottom"/><action name="Unfocus"/></keybind><keybind key="A-space"><action name="ShowMenu"><menu>client-menu</menu></action></keybind><!-- Keybindings for window switching --><keybind key="A-Tab"><action name="NextWindow"/></keybind><keybind key="A-S-Tab"><action name="PreviousWindow"/></keybind><keybind key="C-A-Tab"><action name="NextWindow"><panels>yes</panels><desktop>yes</desktop></action></keybind><!-- Keybindings for running applications --><keybind key="W-e"><action name="Execute"><startupnotify><enabled>true</enabled><name>PCManFM</name></startupnotify><command>pcmanfm</command></action></keybind><!--keybindings for LXPanel --><keybind key="W-r"><action name="Execute"><command>lxpanelctl run</command></action></keybind><keybind key="A-F2"><action name="Execute"><command>lxpanelctl run</command></action></keybind><keybind key="C-Escape"><action name="Execute"><command>lxpanelctl menu</command></action></keybind><keybind key="F11"><action name="ToggleFullscreen"/></keybind><!-- Launch Task Manager with Ctrl+Alt+Del --><keybind key="A-C-Delete"><action name="Execute"><command>lxtask</command></action></keybind><!-- Fast access to Terminal --><keybind key="C-A-T"><action name="Execute"><command>lxterminal</command></action></keybind><!-- Fast access to filemanager --><keybind key="C-A-D"><action name="Execute"><startupnotify><enabled>true</enabled><name>PCManFM</name></startupnotify><command>pcmanfm</command></action></keybind><!-- Keybinding for PrintScreen Key --><keybind key="Print"><action name="Execute"><execute>scrot</execute></action></keybind><keybind key="A-Print"><action name="Execute"><execute>scrot -s</execute></action></keybind><!-- Keybinding for Volume management -->
<keybind key="XF86AudioRaiseVolume">
<action name="Execute">
<command>amixer -q sset Master 3%+</command>
</action>
</keybind>
<keybind key="XF86AudioLowerVolume">
<action name="Execute">
<command>amixer -q sset Master 3%-</command>
</action>
</keybind>
<keybind key="XF86AudioMute">
<action name="Execute">
<command>amixer -q sset Master toggle</command>
</action>
</keybind>
<keybind key="XF86WWW">
<action name="Execute">
<command>x-terminal-emulator</command>
</action>
</keybind>
<keybind key="XF86Calculator">
<action name="Execute">
<command>galculator</command>
</action>
</keybind>
<keybind key="XF86MyComputer">
<action name="Execute">
<command>pcmanfm</command>
</action>
</keybind>
<keybind key="XF86Terminal">
<action name="Execute">
<command>x-terminal-emulator</command>
</action>
</keybind>
<!-- Keybindings for Multimedia Keys and LCD Backlight (alternative when not using gnome-power-manager or xfce4-volumed)
<keybind key="C-F7">
<action name="Execute">
<execute>sleep 2;xset dpms force off</execute>
</action>
</keybind>
<keybind key="C-F10">
<action name="Execute">
<execute>xbacklight -dec 10</execute>
</action>
</keybind>
<keybind key="C-F11">
<action name="Execute">
<execute>xbacklight -inc 10</execute>
</action>
</keybind> -->
<keybind key="A-m">
<action name="Execute">
<command>lxpanelctl menu</command>
</action>
</keybind>
</keyboard>
Edit:
Now, I got an error msg (after I logged out and logged in again)
Great ... I don't even use Shortcuts for LXDE ... I just did that to test that on my machine. Need to fix that later. Don't have time for this :/
- Attachments
-
- Screenshot-3.png (51.05 KiB) Viewed 8106 times
Feel Free to contact me: http://amjjawad.net
-
- Posts: 34
- Joined: Sat Sep 10, 2011 11:31 am
Re: Application Menu How?
Delete "-->" and try again, if that doesnt work tell us what do you have in those 2 lines that error is about;)
EDIT: you can also try command instead of but I dont think itll be necessary.
EDIT: you can also try command
Code: Select all
lxtermianl -e lxpanelctl menu
Code: Select all
lxpanelctl menu
Re: Application Menu How?
If I remember correctly, I removed that "-->" after I posted but I'll check that ... I'm using another machine right now.LXNevermind wrote:Delete "-->" and try again, if that doesnt work tell us what do you have in those 2 lines that error is about;)
EDIT: you can also try commandinstead ofCode: Select all
lxtermianl -e lxpanelctl menu
but I dont think itll be necessary.Code: Select all
lxpanelctl menu
I love trying/testing so I don't mind messing my system up. After all, one can't learn how to fix the system unless he/she breaks it
Keep it up LXNevermind, I'm glad to see a new active member here
Edit: I just checked and it seems that I removed that code from my lubuntu-rc.xml file but the error msg is still showing up. My bad, I should have made a copy of that file as a backup before testing :/
Feel Free to contact me: http://amjjawad.net
Re: Keyboard Shortcut for Application Menu - How?
Ok, I fixed the issue. I copied and paste the content of "Keyboard" section from this topic/thread to my file, saved it, logged out and it works just fine. Now, I guess it's time to re-do the test
Feel Free to contact me: http://amjjawad.net