Registered Member
|
I am trying to get the [Numpad Div] and the [Numpad Mult] key to be a global keyboard shortcut.
When i press one Key alone nothing is supposed to happen. When i press both together I want to run a script. On my Windows PC i have an AutoHotkey script running for that purpose, but afaik AutoHotkey doesn't run on Linux. Tried configuring it in the "System Settings/Shortcuts and Gestures", but it won't let me do that. Looked into the "~/.kde/share/config/khotkeysrc" but I was confused and didn't find anything that would help me with my problem. Any idea on how to do this? Any help would be greatly appreciated. |
Administrator
|
I'm guessing these are the standard / and * keys on your numpad? If so, does "xev" register them any different from the normal / and * keys present on the main part of your keyboard?
Unfortunately I suspect that you won't be able to set a keyboard shortcut here - as KDE requires keys to be combined with a meta key (such as Control, Shift, Alter, etc) before they can be a shortcut.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Those keys are registered as different keys by xev. One being 'slash' and 'asterix' the other two 'KP_Divide' and 'KP_Multiply'.
Too bad about the requirement for the meta keys. I hoped there would be a workaround for that. |
Administrator
|
The only workaround I am aware of would involve changing one of them into a meta key, using xmodmap. Unfortunately this would render it useless for normal operations. As Xmodmap can be used to add mouse shortcut support to a certain extent, it is plausible a workaround to trigger a certain Meta + Key when these two keys are pressed is possible. You would need to check their documentation for more on this however.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
Registered Member
|
Not what I was looking for, but still very interesting and good to know.
Thanks! |
Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell