You are not logged in.
Pages: 1
@lockheed
I think the combination you are using is not valid.
Refer: http://openbox.org/wiki/Help:Bindings#Key_bindings
KEY-COMBINATION is the key combination which you want to bind to the actions. The format for the KEY-COMBINATION is: Modifier-Modifier-Key. Any number of modifiers (0 or more) can be used together, and they are each separated by a "-".
You should have gotten that code after a combination (Fn+<Right Arrow>). So the {keybind key="0x97"}, already binds to Fn+<Right Arrow>. If you want further combination all you can do is add Modifiers. So the {keybind key="S-0x97"} should give binding for the combination of Shift+Fn+<Right Arrow>, though I am not sure about the last one, you will have to check it yourself.
Use the "xev" tool to get the key code/key symbol of the desired combo you want to change. Post it here along with your rc.xml
Attempted solutions (that did not work):-
1: Try different keyboard models
I tried a few (20+) keyboard models.
sudo dpkg-reconfigure keyboard-configurationApparently none of them were even close to my "Lenovo Ideapad S10-3t" keyboard.
2: Remapping via "xmodmap"
What I tried:
1) Get keycode number
KeyPress event, serial 38, synthetic NO, window 0x2800001,
root 0xaa, subw 0x0, time 781697, (173,-9), root:(830,213),
state 0x0, keycode 248 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 38, synthetic NO, window 0x2800001,
root 0xaa, subw 0x0, time 781697, (173,-9), root:(830,213),
state 0x0, keycode 248 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False2) Look for keysym that is not used and closely describes the function:
shalin@cetan:~$ cat /usr/share/X11/XKeysymDB | grep ouch
XF86iTouch :1008FF60
XF86TouchpadToggle :1008FFA93) Remap the keycode to new keysym
shalin@cetan:~$ sudo xmodmap -e "keycode 248 = XF86TouchpadToggle"4) Confirm remapping on xev
KeyPress event, serial 38, synthetic NO, window 0x2800001,
root 0xaa, subw 0x0, time 2554042, (172,-6), root:(429,315),
state 0x0, keycode 248 (keysym 0x1008ffa9, XF86TouchpadToggle), same_screen YES,
XKeysymToKeycode returns keycode: 200
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 38, synthetic NO, window 0x2800001,
root 0xaa, subw 0x0, time 2554042, (172,-6), root:(429,315),
state 0x0, keycode 248 (keysym 0x1008ffa9, XF86TouchpadToggle), same_screen YES,
XKeysymToKeycode returns keycode: 200
XLookupString gives 0 bytes:
XFilterEvent returns: False5) Edit rc.xml & reconfigure Openbox. Test the combination. Does not work.
<keybind key="XF86TouchpadToggle">
<action name="Execute">
<enabled>true</enabled>
<name>ToggleTouchpadOff</name>
<command>toggleTouchpad.sh</command>
</action>
</keybind>6) Reboot Openbox. Test the combination. DOES NOT WORK!
Voila!
Found a solution:-
1) Realize that most/all of the "Fn" combinations are sorted out on hardware into a single key
2) Use the "xev" tool to get the keycode number of that key (in my case "keycode 248")
KeyPress event, serial 38, synthetic NO, window 0x2800001,
root 0xaa, subw 0x0, time 781697, (173,-9), root:(830,213),
state 0x0, keycode 248 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 38, synthetic NO, window 0x2800001,
root 0xaa, subw 0x0, time 781697, (173,-9), root:(830,213),
state 0x0, keycode 248 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False3) Realize that Openbox can directly receive input from that keycode number if its represented in hex
4) Convert keycode to Openbox readable hex
shalin@cetan:~$ printf "0x%x\n" 248
0xf85) Use the hex in the rc.xml & reconfigure Openbox
<keybind key="0xf8">
<action name="Execute">
<enabled>true</enabled>
<name>ToggleTouchpadOff</name>
<command>toggleTouchpad.sh</command>
</action>
</keybind>6) Thank el_koraco for directing me to use "xev" & thank johnraff for reminding me to read the manual once again and realize that Openbox can use a keycode in hex format.
PS: This solution is persistent to changes in keyboard-configuration and changes to xmodmap.
I tried a bunch of keyboards, but none of them respond to the specific command of "Fn+F6"....
I think I will just use Super+F6 instead by using the `xev` command.
Thanks for all your help.
Oh, BTW, my netbook is Lenovo Ideapad S10-3t, in case anyone else was looking for something similar.
I just tried it, don't think that I can use that though.
This is what I got:
shalin@cetan:~$ xev
Outer window is 0x2400001, inner window is 0x2400002
PropertyNotify event, serial 8, synthetic NO, window 0x2400001,
atom 0x27 (WM_NAME), time 14951507, state PropertyNewValue
PropertyNotify event, serial 9, synthetic NO, window 0x2400001,
atom 0x22 (WM_COMMAND), time 14951507, state PropertyNewValue
PropertyNotify event, serial 10, synthetic NO, window 0x2400001,
atom 0x28 (WM_NORMAL_HINTS), time 14951507, state PropertyNewValue
CreateNotify event, serial 11, synthetic NO, window 0x2400001,
parent 0x2400001, window 0x2400002, (10,10), width 50, height 50
border_width 4, override NO
PropertyNotify event, serial 14, synthetic NO, window 0x2400001,
atom 0x13e (WM_PROTOCOLS), time 14951508, state PropertyNewValue
MapNotify event, serial 15, synthetic NO, window 0x2400001,
event 0x2400001, window 0x2400002, override NO
PropertyNotify event, serial 18, synthetic NO, window 0x2400001,
atom 0x187 (_NET_WM_ALLOWED_ACTIONS), time 14951510, state PropertyNewValue
PropertyNotify event, serial 18, synthetic NO, window 0x2400001,
atom 0x183 (_NET_WM_VISIBLE_NAME), time 14951511, state PropertyNewValue
PropertyNotify event, serial 18, synthetic NO, window 0x2400001,
atom 0x184 (_NET_WM_VISIBLE_ICON_NAME), time 14951512, state PropertyNewValue
PropertyNotify event, serial 18, synthetic NO, window 0x2400001,
atom 0x1a8 (_OB_APP_ROLE), time 14951512, state PropertyNewValue
PropertyNotify event, serial 18, synthetic NO, window 0x2400001,
atom 0x1aa (_OB_APP_NAME), time 14951512, state PropertyNewValue
PropertyNotify event, serial 18, synthetic NO, window 0x2400001,
atom 0x1ab (_OB_APP_CLASS), time 14951512, state PropertyNewValue
PropertyNotify event, serial 18, synthetic NO, window 0x2400001,
atom 0x1a9 (_OB_APP_TITLE), time 14951512, state PropertyNewValue
PropertyNotify event, serial 18, synthetic NO, window 0x2400001,
atom 0x1ac (_OB_APP_TYPE), time 14951512, state PropertyNewValue
PropertyNotify event, serial 18, synthetic NO, window 0x2400001,
atom 0x147 (_NET_WM_ICON), time 14951514, state PropertyNewValue
ReparentNotify event, serial 18, synthetic NO, window 0x2400001,
event 0x2400001, window 0x2400001, parent 0x800b66,
(0,0), override NO
PropertyNotify event, serial 18, synthetic NO, window 0x2400001,
atom 0x14c (_NET_WM_STATE), time 14951515, state PropertyNewValue
ConfigureNotify event, serial 18, synthetic NO, window 0x2400001,
event 0x2400001, window 0x2400001, (0,0), width 178, height 178,
border_width 0, above 0x800b92, override NO
ConfigureNotify event, serial 18, synthetic NO, window 0x2400001,
event 0x2400001, window 0x2400001, (1,20), width 178, height 178,
border_width 0, above 0x800b92, override NO
PropertyNotify event, serial 18, synthetic NO, window 0x2400001,
atom 0x143 (_NET_FRAME_EXTENTS), time 14951516, state PropertyNewValue
PropertyNotify event, serial 18, synthetic NO, window 0x2400001,
atom 0x188 (_KDE_NET_WM_FRAME_STRUT), time 14951516, state PropertyNewValue
ConfigureNotify event, serial 18, synthetic YES, window 0x2400001,
event 0x2400001, window 0x2400001, (4,230), width 178, height 178,
border_width 2, above 0x0, override NO
PropertyNotify event, serial 18, synthetic NO, window 0x2400001,
atom 0x146 (_NET_WM_DESKTOP), time 14951517, state PropertyNewValue
MapNotify event, serial 29, synthetic NO, window 0x2400001,
event 0x2400001, window 0x2400001, override NO
VisibilityNotify event, serial 29, synthetic NO, window 0x2400001,
state VisibilityUnobscured
Expose event, serial 29, synthetic NO, window 0x2400001,
(0,0), width 178, height 10, count 3
Expose event, serial 29, synthetic NO, window 0x2400001,
(0,10), width 10, height 58, count 2
Expose event, serial 29, synthetic NO, window 0x2400001,
(68,10), width 110, height 58, count 1
Expose event, serial 29, synthetic NO, window 0x2400001,
(0,68), width 178, height 110, count 0
PropertyNotify event, serial 29, synthetic NO, window 0x2400001,
atom 0x162 (WM_STATE), time 14951526, state PropertyNewValue
FocusIn event, serial 29, synthetic NO, window 0x2400001,
mode NotifyNormal, detail NotifyNonlinear
KeymapNotify event, serial 29, synthetic NO, window 0x0,
keys: 62 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
PropertyNotify event, serial 29, synthetic NO, window 0x2400001,
atom 0x186 (_NET_WM_ICON_GEOMETRY), time 14951547, state PropertyNewValue
KeyPress event, serial 38, synthetic NO, window 0x2400001,
root 0xaa, subw 0x0, time 14954067, (168,-11), root:(174,221),
state 0x0, keycode 248 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 38, synthetic NO, window 0x2400001,
root 0xaa, subw 0x0, time 14954067, (168,-11), root:(174,221),
state 0x0, keycode 248 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
ClientMessage event, serial 41, synthetic YES, window 0x2400001,
message_type 0x13e (WM_PROTOCOLS), format 32, message 0x13c (WM_DELETE_WINDOW)
shalin@cetan:~$ I am using a lenovo netbook and have "Fn" key to perform certain functions like toggle touchpad on/off, volume up/down, etc.. Some of them do not work, but that is not my problem as I have built small scripts for all the functions I need and assigned custom shortcut keys by reprogramming rc.xml.
My main issue is I want to set those shortcuts to default keys which use the "Fn" + (F1-F10). For example, Fn+F6 would toggle my touchpad on/off, but instead i have set it to Super+P and I would like to set it to normal Fn+F6, I just don't know the shorthand for "Fn" key to put in rc.xml.
Is there a way to find/program a shorthand to a key?
Thanks for any info in advance.
Pages: 1
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.