merged gesture patch

This commit is contained in:
2025-10-26 00:26:46 +02:00
3 changed files with 400 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ static const float urgentcolor[] = COLOR(0xff0000ff);
static const float fullscreen_bg[] = {0.1f, 0.1f, 0.1f, 1.0f}; /* You can also use glsl colors */
static int enableautoswallow = 0; /* enables autoswallowing newly spawned clients */
static float swallowborder = 1.0f; /* add this multiplied by borderpx to border when a client is swallowed */
static const unsigned int swipe_min_threshold = 0;
/* tagging - TAGCOUNT must be no greater than 31 */
#define TAGCOUNT (10)
@@ -169,6 +170,13 @@ static const int cursor_timeout = 5;
/* helper for spawning shell commands in the pre dwm-5.0 fashion */
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
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} },
};
/* commands */
static const char *termcmd[] = { "st", NULL };
static const char *filecmd[] = { "st", "-e", "vifmrun", NULL };