diff options
author | wochap <gean.marroquin@gmail.com> | 2024-07-05 11:18:49 -0500 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2025-02-12 12:48:22 -0600 |
commit | 46453af601d7007951caafce80148ed7ede3de3d (patch) | |
tree | 68b72af67979f1027c73d3d92ab2d9f5f88360c6 /config.def.h | |
parent | b5c3e1bb7654a00375bb2bc5b24388c2393d7db8 (diff) | |
download | dwl-46453af601d7007951caafce80148ed7ede3de3d.tar.gz dwl-46453af601d7007951caafce80148ed7ede3de3d.tar.bz2 dwl-46453af601d7007951caafce80148ed7ede3de3d.zip |
implement gestures
Diffstat (limited to '')
-rw-r--r-- | config.def.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h index 5884286..1222041 100644 --- a/config.def.h +++ b/config.def.h @@ -19,6 +19,8 @@ static const float monoclecolor[] = COLOR(0xff9900ff); /* This conforms to the xdg-protocol. Set the alpha to zero to restore the old behavior */ static const float fullscreen_bg[] = {0.1f, 0.1f, 0.1f, 1.0f}; /* You can also use glsl colors */ +static const unsigned int swipe_min_threshold = 0; + /* tagging - TAGCOUNT must be no greater than 31 */ #define TAGCOUNT (9) @@ -207,3 +209,10 @@ static const Button buttons[] = { { MODKEY, BTN_MIDDLE, togglefloating, {0} }, { MODKEY, BTN_RIGHT, moveresize, {.ui = CurResize} }, }; + +static const Gesture gestures[] = { + // { MODKEY, SWIPE_LEFT, 4, shiftview, { .i = 1 } }, + // { MODKEY, SWIPE_RIGHT, 4, shiftview, { .i = -1 } }, + { MODKEY, SWIPE_UP, 3, focusstack, {.i = 1} }, + { MODKEY, SWIPE_DOWN, 3, focusstack, {.i = -1} }, +}; |