dwm

dynamic window manager

git clone https://9o.is/git/dwm.git

commit c421d4ddda82d2e0a60c50c38d0fa5282c539f12
parent a073e2a99bda40c5b99a6961e5104252b93818ee
Author: Jul <jul@9o.is>
Date:   Sun,  1 Feb 2026 06:34:15 -0500

remove monitor bindings

Diffstat:
Mconfig.h | 4----
Mdwm.c | 12+++++++++---
2 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/config.h b/config.h @@ -81,10 +81,6 @@ static const Key keys[] = { { MODKEY|Mod1Mask, XK_space, togglefloating, {0} }, { MODKEY, XK_0, view, {.ui = ~0 } }, { MODKEY|Mod1Mask, XK_0, tag, {.ui = ~0 } }, - { MODKEY, XK_comma, focusmon, {.i = -1 } }, - { MODKEY, XK_period, focusmon, {.i = +1 } }, - { MODKEY|Mod1Mask, XK_comma, tagmon, {.i = -1 } }, - { MODKEY|Mod1Mask, XK_period, tagmon, {.i = +1 } }, TAGKEYS( XK_1, 0) TAGKEYS( XK_2, 1) TAGKEYS( XK_3, 2) diff --git a/dwm.c b/dwm.c @@ -159,14 +159,14 @@ static Monitor *createmon(void); static void destroynotify(XEvent *e); static void detach(Client *c); static void detachstack(Client *c); -static Monitor *dirtomon(int dir); +//static Monitor *dirtomon(int dir); static void drawbar(Monitor *m); static void drawbars(void); static void enternotify(XEvent *e); static void expose(XEvent *e); static void focus(Client *c); static void focusin(XEvent *e); -static void focusmon(const Arg *arg); +//static void focusmon(const Arg *arg); static void focusstack(const Arg *arg); static Atom getatomprop(Client *c, Atom prop); static int getrootptr(int *x, int *y); @@ -209,7 +209,7 @@ static void sighup(int unused); static void sigterm(int unused); static void spawn(const Arg *arg); static void tag(const Arg *arg); -static void tagmon(const Arg *arg); +//static void tagmon(const Arg *arg); static void tile(Monitor *m); static void togglebar(const Arg *arg); static void togglefloating(const Arg *arg); @@ -685,6 +685,7 @@ detachstack(Client *c) } } +/* Monitor * dirtomon(int dir) { @@ -699,6 +700,7 @@ dirtomon(int dir) for (m = mons; m->next != selmon; m = m->next); return m; } +*/ void drawbar(Monitor *m) @@ -826,6 +828,7 @@ focusin(XEvent *e) setfocus(selmon->sel); } +/* void focusmon(const Arg *arg) { @@ -839,6 +842,7 @@ focusmon(const Arg *arg) selmon = m; focus(NULL); } +*/ void focusstack(const Arg *arg) @@ -1723,6 +1727,7 @@ tag(const Arg *arg) } } +/* void tagmon(const Arg *arg) { @@ -1730,6 +1735,7 @@ tagmon(const Arg *arg) return; sendmon(selmon->sel, dirtomon(arg->i)); } +*/ void tile(Monitor *m)