> Sometimes I will forget what key binds I defined in my rc.lua.
Why do you forget the bindkeys? Because they're wrong :) Choose
another keybindings :)
> Creating a function to show up a tooltip or naughty notify of all defined key
> binds.
> I think this is a good idea, Awesome should have it. Manpage of default key
> binds is not enough....
Just an idea: create own function which creates the keybindings. E.g.
you create a function named my_awful_key (which replaces awful.key):
function my_awful_key(mod,key,press,DESCRIPTION)
local tmp = {
mod = mod,
key = key,
descr = DESCRIPTION
}
table.insert(keybindings,tmp)
return awful.key(mod,key,press)
end
So when you want to create a keybind you'll call my_awful_key instead
of awful.util.key. Your keybindings will stored in `keybindings' so
you can evalutes its content and can display it in a notify.
But what do you do if you forget the keybind of "keybinding-help"? :)
I hope it can help you.
Zsolt
--
To unsubscribe, send mail to [email protected].