=> On [2012-06-19 07:24:15 +0200]:
 Zsolt Udvari Said: 
> > 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):
Maybe I'm not clear, for example, user may create many keybinds in rc.lua.
keybinds like: Mod4-[A~Z] and Mod4-Shift-[A~Z] Mod4-Ctrl-[A~Z] 
Mod4-Ctrl-Shift-[A~Z].
Those keybinds maybe from Shifty, or use custom keybinds for manipulating
clients, or executing some commands, or startup some programs, We create
keybinds, because we want a quick way to start or do something. But when those
keybinds is too much, we need a way to manage this.
Maybe some users can use a good way to remember and define those keybinds like:
e.g. open firefox program, use Mod4-b (browser), Fullscreen current client with
Mod4-f (fullscreen), and so on, but ... , I do not know, I still want a solution
for many keybinds.
I know this looks like crazy, I just want you know it is possible there are 30
or even more keybinds. User may use some keybinds very frequently. But there are
some keybinds use only once or twice. So when user want to checkout his custom
keybinds, he have to use text editor to open the config file rc.lua, then search
through whole file. This is not a good idea.
I looks a similar idea from CrunchBang distro. It has a keybinds list on the
desktop, so a new user can know how to do quickly.
And this is similar a cheatsheet.
Just like a man or info command.

> 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].

-- 
[ stardiviner ] ^^&^^ {I hate all of you !  Leave me alone}
IRC(freenode): stardiviner     \\ Twitter:  @numbchild \\
GnuPG Key fingerprint
    >>> 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433

Attachment: signature.asc
Description: Digital signature

Reply via email to