My configuration of sxmo fork of suckless dwm.

git clone git://watertao.xyz/programs/sxmo-dwm.git

commit 8537e1246df99d1d7d74134a52ad196c10a1b1f0
parent efd80f7cdb692cba14f60d0c1d6dca9d0f021586
Author: Miles Alan <m@milesalan.com>
Date:   Mon, 16 Mar 2020 20:06:49 -0500

Add tagtoright function

Diffstat:
Mdwm.c | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

diff --git a/dwm.c b/dwm.c @@ -248,6 +248,7 @@ static int xerrorstart(Display *dpy, XErrorEvent *ee); static void zoom(const Arg *arg); static void bstack(Monitor *m); static void bstackhoriz(Monitor *m); +static void tagtoright(const Arg *arg); static pid_t getparentprocess(pid_t p); static int isdescprocess(pid_t p, pid_t c); @@ -2583,3 +2584,16 @@ bstackhoriz(Monitor *m) { } } } + +void +tagtoright(const Arg *arg) { + if( + selmon->sel != NULL + && (selmon->tagset[selmon->seltags] & TAGMASK) + && (selmon->tagset[selmon->seltags] & (TAGMASK >> 1)) + ) { + selmon->sel->tags <<= 1; + focus(NULL); + arrange(selmon); + } +}