You are not logged in.
I am using an unusual keyboard http://www.grandtec.com/products/video/vik.html#mini
Some of the keys are dead, among them the "Up Arrow/PgUp".
I am trying to bind these functions with
<keybind key="A-u">
<action name="Up"/>
</keybind>
<keybind key="C-u">
<action name="PgUp"/>
</keybind>
in my ~/.config/openbox/rc.xml file
The reason for this post is, of course, that it doesn't work.
Does anyone know of the correct syntax for the "Up Arrow/PgUp" functions?
Last edited by haikuhacker (2011-10-31 18:27:38)
Salix-13.37-64-XFCE/Spectrwm Archbang/Razor-QT
Intel® Atom™ Processor D510
NVIDIA® GeForce™ 6200
Offline
You need to say what you want the given keystroke to do. For instance, in my rc.xml, I have the following lines:
<keybind key="C-Left">
<action name="GoToDesktop"><to>left</to><wrap>yes</wrap></action>
</keybind>
<keybind key="C-Right">
<action name="GoToDesktop"><to>right</to><wrap>yes</wrap></action>
</keybind>
This tells openbox that control-right arrow will move to the next higher workspace (i.e. 2 to 3) and control-left arrow will move to the next lower workspace.
For you to use the Up/Down PgUp keys etc. you would do
<keybind key="Up">
<action name="..">...</action>
</keybind>
The available actions can be found here.
Last edited by rockin turtle (2011-10-30 20:43:40)
Offline
I can't use the Up arrow or PgUp keys. They are dead. What I am trying to do is to remap the Up arrow and PgUp key functions to other keys {CTRL+u} and {ALT+u}.
Salix-13.37-64-XFCE/Spectrwm Archbang/Razor-QT
Intel® Atom™ Processor D510
NVIDIA® GeForce™ 6200
Offline
Sorry, I realized that after I responded.
I think you need to remap those keys in the X server, not in openbox.
I've been looking at xmodmap for a while now, but I can't figure out how to do what you want.
I think you could remap PageUp to function key F11 and Up to function key F12 (for example) by doing
$ xmodmap -e 'keysym F11 = Prior'
$ xmodmap -e 'keysym F12 = Up'
but I don't know (and can't seem to figure out) how to reassign using the modifier keys like Control, Alt, etc.
Offline
Thanks rockin' turtle. those commands worked for me while I remained logged in.
I read that I can
xmodmap -pke > ~/.Xmodmap
then make changes to the file and use it everytime I login with
if [ -f $HOME/.Xmodmap ]; then
/usr/bin/xmodmap $HOME/.Xmodmap
fi
added to my .xinitrc
I changed my .Xmodmap with these 2 lines
keycode 95 = KP_Prior KP_3 KP_Prior KP_3 KP_Prior KP_3 KP_Prior KP_3
keycode 96 = KP_Up KP_2 KP_Up KP_2 KP_Up KP_2 KP_Up KP_2
and when I logged out then logged back in, it worked
Last edited by haikuhacker (2011-10-31 18:24:44)
Salix-13.37-64-XFCE/Spectrwm Archbang/Razor-QT
Intel® Atom™ Processor D510
NVIDIA® GeForce™ 6200
Offline
I don't think you needed to do
$ xmodmap -pke > ~/.Xmodmap
I believe that it would work if your entire .Xmodmap file consisted of just the two lines you showed. If fact I think it would be much better to have the smaller .Xmodmap file as the X server gets initialized according to your Locale, and by having a large .Xmodmap file, you end up re-initializing everything. Should you ever wish to change Locales, your large .Xmodmap file may undo what you want.
Offline
Thanks again rockin' turtle.
I'll edit the fiile to be just those 2 lines.
Salix-13.37-64-XFCE/Spectrwm Archbang/Razor-QT
Intel® Atom™ Processor D510
NVIDIA® GeForce™ 6200
Offline