all repos — openbox @ 5302cf10a3a839d3aea9618b509b1e41d8b2a192

openbox fork - make it a bit more like ryudo

add hardcoded key binds back
Dana Jansens danakj@orodu.net
commit

5302cf10a3a839d3aea9618b509b1e41d8b2a192

parent

4dbce5e505e7b9e2f157c53d8e0445583a463755

1 files changed, 17 insertions(+), 0 deletions(-)

jump to
M openbox/config.copenbox/config.c

@@ -782,6 +782,21 @@ const gchar *key;

const gchar *actname; } ObDefKeyBind; +static void bind_default_keyboard() +{ + ObDefKeyBind *it; + ObDefKeyBind binds[] = { + { "A-Tab", "NextWindow" }, + { "S-A-Tab", "PreviousWindow" }, + { "A-F4", "Close" }, + { NULL, NULL } + }; + for (it = binds; it->key; ++it) { + GList *l = g_list_append(NULL, g_strdup(it->key)); + keyboard_bind(l, actions_parse_string(it->actname)); + } +} + typedef struct { const gchar *button;

@@ -912,6 +927,8 @@ parse_register(i, "dock", parse_dock, NULL);

translate_key("C-g", &config_keyboard_reset_state, &config_keyboard_reset_keycode); + + void bind_default_keyboard() parse_register(i, "keyboard", parse_keyboard, NULL);