diff options
| author | bakkeby <[email protected]> | 2022-10-08 22:12:03 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2022-10-08 22:35:04 +0200 |
| commit | cc58ad2ef41bf0b9a298366fbdc5afbde31edb17 (patch) | |
| tree | 224e488aa5777d69ab0a3c9c7643447421a7d906 /config.def.h | |
| parent | 4912e3129aa8e1e9bb5f56d20377102575aca2b7 (diff) | |
| download | dwm-flexipatch-cc58ad2ef41bf0b9a298366fbdc5afbde31edb17.tar.gz dwm-flexipatch-cc58ad2ef41bf0b9a298366fbdc5afbde31edb17.zip | |
Adding alt-tab patch ref. #303
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h index 1b06f0d..5d10181 100644 --- a/config.def.h +++ b/config.def.h @@ -122,6 +122,16 @@ static const int ulineall = 0; /* 1 to show underline on all ta #define NAMETAG_COMMAND "dmenu < /dev/null" #endif // NAMETAG_PATCH +#if ALT_TAB_PATCH +/* alt-tab configuration */ +static const unsigned int tabmodkey = 0x40; /* (Alt) when this key is held down the alt-tab functionality stays active. Must be the same modifier as used to run alttabstart */ +static const unsigned int tabcyclekey = 0x17; /* (Tab) when this key is hit the menu moves one position forward in client stack. Must be the same key as used to run alttabstart */ +static const unsigned int tabposy = 1; /* tab position on Y axis, 0 = top, 1 = center, 2 = bottom */ +static const unsigned int tabposx = 1; /* tab position on X axis, 0 = left, 1 = center, 2 = right */ +static const unsigned int maxwtab = 600; /* tab menu width */ +static const unsigned int maxhtab = 200; /* tab menu height */ +#endif // ALT_TAB_PATCH + /* Indicators: see patch/bar_indicators.h for options */ static int tagindicatortype = INDICATOR_TOP_LEFT_SQUARE; static int tiledindicatortype = INDICATOR_NONE; @@ -996,7 +1006,11 @@ static const Key keys[] = { { MODKEY|Mod4Mask, XK_0, togglegaps, {0} }, { MODKEY|Mod4Mask|ShiftMask, XK_0, defaultgaps, {0} }, #endif // VANITYGAPS_PATCH + #if ALT_TAB_PATCH + { Mod1Mask, XK_Tab, alttabstart, {0} }, + #else { MODKEY, XK_Tab, view, {0} }, + #endif // ALT_TAB_PATCH #if SHIFTTAG_PATCH { MODKEY|ShiftMask, XK_Left, shifttag, { .i = -1 } }, // note keybinding conflict with focusadjacenttag tagtoleft { MODKEY|ShiftMask, XK_Right, shifttag, { .i = +1 } }, // note keybinding conflict with focusadjacenttag tagtoright |
