From 8172b16f56b2e8aeae3958fee3134896b3b8661e Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Thu, 22 Aug 2024 23:17:53 -0400 Subject: [PATCH] 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. --- specializations/dwm.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/specializations/dwm.nix b/specializations/dwm.nix index 9e9b0c70..b54e36ae 100644 --- a/specializations/dwm.nix +++ b/specializations/dwm.nix @@ -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="; + }) ]; }; };