27 const char *release,
const char *command,
const char *mode);
void grab_all_keys(xcb_connection_t *conn, bool bind_mode_switch)
Grab the bound keys (tell X to send us keypress events for those keycodes)
CommandResult * run_binding(Binding *bind)
Runs the given binding and handles parse errors.
Binding * get_binding_from_xcb_event(xcb_generic_event_t *event)
Returns a pointer to the Binding that matches the given xcb event or NULL if no such binding exists...
const char * DEFAULT_BINDING_MODE
The name of the default mode.
pid_t command_error_nagbar_pid
Binding * configure_binding(const char *bindtype, const char *modifiers, const char *input_code, const char *release, const char *command, const char *mode)
Adds a binding from config parameters given as strings and returns a pointer to the binding structure...
Holds a keybinding, consisting of a keycode combined with modifiers and the command which is executed...
A struct that contains useful information about the result of a command as a whole (e...
Used during the config file lexing/parsing to keep the state of the lexer in order to provide useful ...
void translate_keysyms(void)
Translates keysymbols to keycodes for all bindings which use keysyms.
void switch_mode(const char *new_mode)
Switches the key bindings to the given mode, if the mode exists.
void check_for_duplicate_bindings(struct context *context)
Checks for duplicate key bindings (the same keycode or keysym is configured more than once)...