From 2986224306015d87497cbb6c715695b014dfecdd Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 23 May 2024 19:48:07 -0700 Subject: feat(dwm.c): alt tab patch + horizontal alignment --- config.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'config.h') diff --git a/config.h b/config.h index 2e6adc0..b6a6fbc 100644 --- a/config.h +++ b/config.h @@ -8,6 +8,14 @@ #define BROWSER "vivaldi" #define WMNAME "sei" +/* alt-tab configuration */ +static const unsigned int tabModKey = 0x40; /* if this key is hold the alt-tab functionality stays acitve. This key must be the same as key that is used to active functin altTabStart `*/ +static const unsigned int tabCycleKey = 0x17; /* if this key is hit the alt-tab program moves one position forward in clients stack. This key must be the same as key that is used to active functin altTabStart */ +static const unsigned int tabPosY = 1; /* tab position on Y axis, 0 = bottom, 1 = center, 2 = top */ +static const unsigned int tabPosX = 1; /* tab position on X axis, 0 = left, 1 = center, 2 = right */ +static const unsigned int maxWTab = 300; /* tab menu width */ +static const unsigned int maxHTab = 100; /* tab menu height */ + /* appearance */ /* followclient: * 1: @@ -170,6 +178,7 @@ static const Key keys[] = { /* { MODKEY|ShiftMask, XK_Escape, spawn, SHCMD("") }, */ { MODKEY, XK_grave, spawn, {.v = (const char*[]){ "rofi", "-modi", "emoji", "-show", "emoji", NULL } } }, /* { MODKEY|ShiftMask, XK_grave, togglescratch, SHCMD("") }, */ + { Mod1Mask, XK_Tab, altTabStart, {0} }, TAGKEYS( XK_1, 0) TAGKEYS( XK_2, 1) TAGKEYS( XK_3, 2) @@ -188,7 +197,7 @@ static const Key keys[] = { { MODKEY, XK_BackSpace, spawn, {.v = (const char*[]){ "sysact", NULL } } }, { MODKEY|ShiftMask, XK_BackSpace, spawn, {.v = (const char*[]){ "sysact", NULL } } }, - { MODKEY, XK_Tab, view, {0} }, + /* { MODKEY, XK_Tab, view, {0} }, */ /* { MODKEY|ShiftMask, XK_Tab, spawn, SHCMD("") }, */ { MODKEY, XK_q, killclient, {0} }, { MODKEY|ShiftMask, XK_q, spawn, {.v = (const char*[]){ "sysact", NULL } } }, -- cgit v1.2.3