]> git.sur5r.net Git - i3/i3/commit
i3bar: implement custom mouse wheel commands
authorTony Crisci <tony@dubstepdish.com>
Fri, 4 Jul 2014 09:53:22 +0000 (05:53 -0400)
committerMichael Stapelberg <michael@stapelberg.de>
Thu, 10 Jul 2014 20:40:12 +0000 (22:40 +0200)
commit8e23dc881b33f1b5a434db89b804f935ff146bbb
treed52d0b98fa321208f41fb55ca86a94a556f49b4a
parent0514be8d4b6a0470dff9ec9c5f00af7d63a07664
i3bar: implement custom mouse wheel commands

Users can specify a command to run when a button was pressed on i3bar to
override the default behavior. Currently only the mouse wheel buttons
are supported. This is useful for disabling the scroll wheel action or
running scripts that implement custom behavior for these buttons.

Example:

bar {
    wheel_up_cmd nop
    wheel_down_cmd exec ~/.i3/scripts/custom_wheel_down
}

fixes #1104
docs/userguide
i3bar/include/config.h
i3bar/src/config.c
i3bar/src/xcb.c
include/config.h
include/config_directives.h
parser-specs/config.spec
src/config_directives.c
src/ipc.c
testcases/t/201-config-parser.t