Read 'bindsym' rather than the old 'wheel_up_cmd' and 'wheel_down_cmd' directives in i3bar and call the command if specified.

The old directives are still read for transitional support which can be removed in a future version.
This commit is contained in:
Ingo Bürk
2015-06-13 14:58:41 +02:00
parent 2b6f76852c
commit 715fbf2d80
3 changed files with 62 additions and 22 deletions

View File

@ -22,10 +22,16 @@ typedef enum { M_DOCK = 0,
M_HIDE = 1,
M_INVISIBLE = 2 } bar_display_mode_t;
typedef struct mouse_command_t {
int button;
char *command;
TAILQ_ENTRY(mouse_command_t) commands;
} mouse_command_t;
typedef struct config_t {
int modifier;
char *wheel_up_cmd;
char *wheel_down_cmd;
TAILQ_HEAD(mouse_commands_head, mouse_command_t) mouse_commands;
position_t position;
int verbose;
struct xcb_color_strings_t colors;