From: Arnout E. <no...@bz...> - 2016-11-12 15:26:40
|
Hello Wojtek, Thanks for your message. Certainly when a long-time user like yourself is confused by an error message this is a problem, so this was not an unnecessary post IMHO :). I've taken a look at the code and think the updated messages in https://github.com/raboof/notion/pull/25/commits/e9f90c43d33b9d79d5d05e4407f48a3bb3c9b48e would make more sense, what do you think? Kind regards, Arnout On Mon, Aug 15, 2016 at 9:24 PM, Wojciech Aniszewski < ani...@da...> wrote: > OK solved. > I apologize for the apparently unnecessary post. In case anyone needs this > ever: in most systems, > Super_L will be Mod4 or Mod3. Use xmodmap to check it out. Using "Mod4" > name instead of bare "Super_L" > results in a proper instruction. > regards > w > > On Mon, Aug 15, 2016 at 08:45:52PM +0200, Wojciech Aniszewski wrote: > > 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! | > > `-------------------------------------" > > > > > ------------------------------------------------------------ > ------------------ > > What NetFlow Analyzer can do for you? Monitors network bandwidth and > traffic > > patterns at an interface-level. Reveals which users, apps, and protocols > are > > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > > J-Flow, sFlow and other flows. Make informed decisions using capacity > > planning reports. http://sdm.link/zohodev2dev > > > _______________________________________________ > > Notion-general mailing list > > Not...@li... > > https://lists.sourceforge.net/lists/listinfo/notion-general > > > -- > 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! | > `-------------------------------------" > > ------------------------------------------------------------ > ------------------ > What NetFlow Analyzer can do for you? Monitors network bandwidth and > traffic > patterns at an interface-level. Reveals which users, apps, and protocols > are > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > J-Flow, sFlow and other flows. Make informed decisions using capacity > planning reports. http://sdm.link/zohodev2dev > _______________________________________________ > Notion-general mailing list > Not...@li... > https://lists.sourceforge.net/lists/listinfo/notion-general > > |