]> git.sur5r.net Git - i3/i3/commit - include/i3/ipc.h
Implement the ipc 'binding' event
authorTony Crisci <tony@dubstepdish.com>
Thu, 2 Oct 2014 23:04:53 +0000 (19:04 -0400)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 3 Oct 2014 07:35:37 +0000 (09:35 +0200)
commitfbaf0844261b70ab00d71fb1cd856e730f6fe5fd
tree3a2ceb2f29f0a5cf8c6fbf338d739b93e081464a
parent3cf413492fffe3c831ef5cd1371734f74239dc4d
Implement the ipc 'binding' event

The binding event will be triggered when a binding is run as a result of
some a user action. The binding event has the following properties:

change: (str) Currently this will only be "run" but may be expanded in
the future. Included for consistency with other events.

binding: (map) the serialized binding

The "binding" member will have these properties:

input_type: (str) either "keyboard" or "mouse"

input_code: (int) the xcb keycode of the keyboard binding if it was
provided or the mouse button if it is a mouse binding.

symbol: (str) the string representation of the input code

command: (str) the bound command

mods: (list of str) a list of the modifiers that were pressed as string
symbols

fixes #1210
docs/ipc
include/i3/ipc.h
include/ipc.h
src/bindings.c
src/ipc.c
testcases/t/238-ipc-binding-event.t [new file with mode: 0644]