How to start menu using the WIN keys? (Solved)
How to start menu using the WIN keys? (Solved)
I want to config the WIN keys as keyboard shortcut to open up the menu of the MENU button.
Is is possible to trigger the menu by keyboard shortcut?
And what is the keycode of WIN keys and what command should be exec?
Is is possible to trigger the menu by keyboard shortcut?
And what is the keycode of WIN keys and what command should be exec?
Ok, puppy 5.2 uses openbox be default so.
Open up /root/.config/openbox/rc.xml
Note that .config is a hidden file. Ctrl-H to see it.
Then insert this.
Note that the <keyboard> and </keyboard> are already there, you need to paste it inbetween.
Make another with Super_R if you want your right window key too.
This will work, unless you have some very weird keyboard, if it doesnt work, just post back
Open up /root/.config/openbox/rc.xml
Note that .config is a hidden file. Ctrl-H to see it.
Then insert this.
Code: Select all
<keyboard>
...
<keybind key="Super_L">
<action name="ShowMenu">
<menu>root-menu</menu>
</action>
</keybind>
...
</keyboard>
Make another with Super_R if you want your right window key too.
This will work, unless you have some very weird keyboard, if it doesnt work, just post back
In case someone runs a search for this and end up reading this thread, I hereby inform that IceWM opens the root menu with the Win key. It is pre configured to do that, no extra configuration is necessary.
I have been unable to figure out how to achieve the same with JWM. I also like to use the Win key for other things, like Win+z=minimize etc. The Win key doesn't seem to work at all in JWM. But works fine in IceWM.
I have been unable to figure out how to achieve the same with JWM. I also like to use the Win key for other things, like Win+z=minimize etc. The Win key doesn't seem to work at all in JWM. But works fine in IceWM.
This works for my keyboard in JWM.
Added to the file "/root/.jwm/jwmrc-personal".
Cheers,
s
Code: Select all
<Key keycode="115">root:3</Key>
Cheers,
s
Keyboard patch in openbox not working
I've always found it strange that Puppy hasn't tried to make the change to Linux from Windows easier by having the WIN key open the root menu. Some versions had F12, some Ctrl+Esc, some I haven't found any key combination. (With the exception of mouse right click)
I'm using Puppy 5.2 and tried patching the XML file according to the above.
When I look in the files keyboard section I notice a bunch of things
it says in the beginning: "<!-- Do not edit this file, it will be overwritten on install.
Copy the file to $HOME/.config/openbox/ instead. -->
But I WAS working in root/.config/openbox.
other shortcuts contain
S A C which I assume are Shift Alt and Ctrl
but what is W if not Windows key?
I just noticed that at the end of the code I added:
</keybind> <keybind key="C-A-Left">
could that be a problem?
I'm changing to
I'm using Puppy 5.2 and tried patching the XML file according to the above.
- Restarted X-server
Rebooted computer
Checked to make sure the changes were still in that file
When I look in the files keyboard section I notice a bunch of things
it says in the beginning: "<!-- Do not edit this file, it will be overwritten on install.
Copy the file to $HOME/.config/openbox/ instead. -->
But I WAS working in root/.config/openbox.
other shortcuts contain
S A C which I assume are Shift Alt and Ctrl
but what is W if not Windows key?
I just noticed that at the end of the code I added:
</keybind> <keybind key="C-A-Left">
could that be a problem?
I'm changing to
Code: Select all
<keyboard>
<chainQuitKey>C-g</chainQuitKey>
<!-- Keybindings for desktop switching, added Super L&R open menu Jeff-->
<keybind key="Super_L">
<action name="ShowMenu">
<menu>root-menu</menu>
</action>
</keybind>
<keybind key="Super_R">
<action name="ShowMenu">
<menu>root-menu</menu>
</action>
</keybind>
<keybind key="C-A-Left">
only not (visibly) closed
that last
<keybind key="C-A-Left">
was just showing the beginning of the code after what I inserted.
<keybind key="C-A-Left">
was just showing the beginning of the code after what I inserted.