]> git.sur5r.net Git - i3/i3/blobdiff - i3bar/include/config.h
Read 'bindsym' rather than the old 'wheel_up_cmd' and 'wheel_down_cmd' directives...
[i3/i3] / i3bar / include / config.h
index fdc37445ab4944549742ca7c580fa4f488e51de0..90c7c02b8c7b73891a1e370dd7c69a766c30a59b 100644 (file)
@@ -2,7 +2,7 @@
  * vim:ts=4:sw=4:expandtab
  *
  * i3bar - an xcb-based status- and ws-bar for i3
- * © 2010-2011 Axel Wagner and contributors (see also: LICENSE)
+ * © 2010 Axel Wagner and contributors (see also: LICENSE)
  *
  * config.c: Parses the configuration (received from i3).
  *
@@ -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;