Hi,
I was wondering what the best way to capture the release of the modkey would be.
Basically (optionally after <key_combo> is pressed) i want an action to be fired
when modkey is released.
So far i've only managed things like (1) adding
awful.key({ }, "Super_L",
function ()
-- only here cos we don't get the release without it
end
),
awful.key({ "Mod4" }, "Super_L",
function () end,
modkey_release_function
)
to the global keys and (2)
awful.key(key_combo,
function ()
keygrabber.run(function (mod, key, event)
if (event == 'release') and (key == 'Super_L') then
keygrabber.stop()
modkey_release_function()
end
return true
end)
end
).
The first solution causes all clientkeys to be ignored, while the second means
that no other modkey+blah keybindings will work until the modkey has been
released. Both suffer from the explicit use of "Super_L" rather than modkey.
I suspect there's a clean solution involving signals, but i don't know how to
do it and haven't had much luck finding out.
Any ideas?
Thanks,
Matt
--
To unsubscribe, send mail to [email protected].