This patch provides an mechanism to easily jump between any 2 clients, or to swap any 2 clients through shortcuts by introcuding mark. The mark is global, and only one mark is allowed at the same time. The marked client is distinguished from other clients by having a different border color.

This patch adds 3 functions to dwm:


static const char normmarkcolor[]   = "#775500";	/*border color for marked client*/
static const char selmarkcolor[]    = "#775577";	/*border color for marked client on focus*/
/*basic key mappings*/
{ MODKEY,                       XK_semicolon,togglemark,   {0} },
{ MODKEY,                       XK_o,      swapfocus,      {0} },
{ MODKEY,                       XK_u,      swapclient,     {0} },

Some ideas for combinations of key mappings:


This patch has now been updated to 6.2.
The recommended version is dwm-6.2-mark-new.diff. (updated on 2020-10-05)