]> git.sur5r.net Git - i3/i3/blobdiff - include/config.h
i3bar: implement custom mouse wheel commands
[i3/i3] / include / config.h
index 22110ebad79e4c0dff882339660fe390b6856291..b0f22417ab038715812c1c537ab43576909e7a02 100644 (file)
@@ -261,6 +261,14 @@ struct Barconfig {
         M_MOD5 = 7
     } modifier;
 
+    /** Command that should be run when mouse wheel up button is pressed over
+     * i3bar to override the default behavior. */
+    char *wheel_up_cmd;
+
+    /** Command that should be run when mouse wheel down button is pressed over
+     * i3bar to override the default behavior. */
+    char *wheel_down_cmd;
+
     /** Bar position (bottom by default). */
     enum { P_BOTTOM = 0,
            P_TOP = 1 } position;