|
From: Wojciech A. <ani...@da...> - 2016-08-15 19:16:14
|
Hi there Everyone.
I'm trying to map "j i k l" keys, with a modifier, to emulate a numpad (which is normally there
on properly equipped laptops). Xdotool can be used for this quite elegantly.
Question is, how to bind it. For reasons I don't need to explain to Notion users, this fails:
defbindings("WScreen", {
bdoc("Emulate numpad"),
kpress("Mod1+j","ioncore.exec('xdotool key Left')"),
kpress("Mod1+l","ioncore.exec('xdotool key Right')"),
kpress("Mod1+i","ioncore.exec('xdotool key Up')"),
kpress("Mod1+k","ioncore.exec('xdotool key Down')"),
})
i.e. only "Mod1+j" sorta works, as this shortcut is free. Now, since I have a useless Win key,
I sometimes map it to something. For example, I use "Mod1+Super_L" to turn off LCD backlight.
So I thought, why not use Super_L for the above, as in:
defbindings("WScreen", {
bdoc("Emulate numpad"),
kpress("Super_L+j","ioncore.exec('xdotool key Left')"),
kpress("Super_L+l","ioncore.exec('xdotool key Right')"),
kpress("Super_L+i","ioncore.exec('xdotool key Up')"),
kpress("Super_L+k","ioncore.exec('xdotool key Down')"),
})
But Notion fails. A tuom-ish message appears saying "Insane key combination", and the lua config file is ignored.
So, how do I bind to such a combination? It must be with some left-hand modifier.
thanks in advance
Wojtek
--
Wojtek Aniszewski
[Fr: vôitek anichévsky]
[Eng: voyteck aanishevsky]
www:
[in English:] http://www.coria.fr/spip.php?auteur1606
[in Polish:] http://nauka-polska.pl/dhtml/raporty/ludzieNauki?rtype=opis&objectId=240452&lang=pl
/^..^\ ,-------------------------------------,
( (••) ) ►►►►| My public GPG key ID: AC66485E |
(|)_._(|)~ | please use email encryption! |
`-------------------------------------"
|