dwm: Add reorganize tags patch

Automatically moves windows to the leftmost tag when moving them.
Useful to help keep the third workspace unoccupied when two other
workspaces have windows on them.
This commit is contained in:
Donovan Glover 2024-08-22 23:17:53 -04:00
parent e7997f5fbc
commit 8172b16f56
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -190,7 +190,9 @@ in
{ MODKEY, XK_1, viewprev, {0} },
{ MODKEY, XK_2, viewnext, {0} },
{ MODKEY|ShiftMask, XK_1, tagtoprev, {0} },
{ MODKEY|ShiftMask, XK_1, reorganizetags, {0} },
{ MODKEY|ShiftMask, XK_2, tagtonext, {0} },
{ MODKEY|ShiftMask, XK_2, reorganizetags, {0} },
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
{ MODKEY|ShiftMask, XK_c, killclient, {0} },
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
@ -225,6 +227,11 @@ in
url = "https://dwm.suckless.org/patches/alpha/dwm-alpha-20230401-348f655.diff";
hash = "sha256-ZhuqyDpY+nQQgrjniQ9DNheUgE9o/MUXKaJYRU3Uyl4=";
})
(pkgs.fetchpatch {
url = "https://dwm.suckless.org/patches/reorganizetags/dwm-reorganizetags-6.2.diff";
hash = "sha256-Fj+cfw+5d7i6UrakMbebhZsfmu8ZfooduQA08STovK4=";
})
];
};
};