Hi. On Sun 2009-03-08 01:24, Gregor Best <[email protected]> proclaimed: > At Sat, 7 Mar 2009 02:12:30 +0100 > Frank Blendinger wrote: > > On Sat 2009-03-07 01:58, Gregor Best <[email protected]> > > proclaimed: > > > What does the keybinding look like? I had a similar issue where xtrlock > > > would just return if I bound it to key press. The trick is to bind it to > > > key release, like this: > > > key({ modkey, "Mod1" }, "l", nil, function () > > > awful.util.spawn("xtrlock") > > > end) > > > > If have it like this: > > > > table.insert(globalkeys, key({ modkey }, "q", function() > > --awful.util.spawn("/home/yogan/bin/hammerlock-simple.sh") > > awful.util.spawn("xtrlock") > > end)) > > > > How do I bind to a key release? What is the nil in your key doing? It > > tried to put that in my binding, but it did not work. (Actually, it made > > all my other keybindings not work anymore after I have pressed modkey+q.) > > The nil in my binding assigns a nil function to key press. It's just to pad > the > arguments so the function spawning xtrlock is given as the function to execute > on key release. The support for this is in Awesome since commit id > #67a9f0d302,
Ah, now I got it. Thanks.
> which got introduced on December 16th 2009, so it's in all 3.2 release
I guess it was 2008. :-)
Greetings,
Frank
--
Frank Blendinger | fb(at)intoxicatedmind.net | GPG: 0x0BF2FE7A
Fingerprint: BB64 F2B8 DFD8 BF90 0F2E 892B 72CF 7A41 0BF2 FE7A
"Just because I don't care doesn't mean I don't understand."
(Homer Simpson)
signature.asc
Description: Digital signature
