linux - awesome wm - how to bind a key to another key -


i'm new awesome wm , i'm trying bind key key. e.g.

when press alt+j, act pressed down key on keyboard.

i don't know whether awesome wm has function or not?

any function this?

awful.key({ altkey }, "j", function () "down" 

i think may misunderstanding question.

interpretation 1:

just copy code other key binding.

in default config, mod+j is:

awful.key({ modkey,           }, "j",                                                                                                                                                     function ()         awful.client.focus.byidx( 1)         if client.focus client.focus:raise() end     end), 

copy part , change key:

awful.key({ }, "down",                                                                                                                                                     function ()         awful.client.focus.byidx( 1)         if client.focus client.focus:raise() end     end), 

interpretation 2:

awful.key({ modkey,           }, "j",                                                                                                                                                     function ()         root.fake_input("key_press", "down")         root.fake_input("key_release", "down")     end), 

Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -