From f188a91558b4daa52e21d8e7c58966785fe547ee Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Fri, 16 Jul 2021 02:07:58 +0200 Subject: [PATCH] Removed togglegaps & keybinds --- src/config.h | 7 ++++--- src/dwm.c | 11 ----------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/src/config.h b/src/config.h index 9585d2a..38462a4 100644 --- a/src/config.h +++ b/src/config.h @@ -126,9 +126,10 @@ static Key keys[] = { { MODKEY|ShiftMask, XK_x, spawn, {.v = betterlockscreencmd} }, { MODKEY, XK_Print, spawn, {.v = spectaclecmd} }, { MODKEY, XK_u, spawn, {.v = cmuspausecmd} }, - { MODKEY, XK_g, togglegaps, {0} }, - { MODKEY, XK_minus, switchgaps, {.i = -1 } }, - { MODKEY, XK_plus, switchgaps, {.i = +1 } }, + { MODKEY, XK_g, switchgaps, {.i = +1 } }, + { MODKEY, XK_v, switchgaps, {.i = -1 } }, + { MODKEY, XK_minus, setgaps, {.i = -1 } }, + { MODKEY, XK_plus, setgaps, {.i = +1 } }, { MODKEY|ShiftMask, XK_equal, setgaps, {.i = 0 } }, TAGKEYS( XK_1, 0) TAGKEYS( XK_2, 1) diff --git a/src/dwm.c b/src/dwm.c index 7278240..6973097 100644 --- a/src/dwm.c +++ b/src/dwm.c @@ -230,7 +230,6 @@ static void setclientstate(Client *c, long state); static void setfocus(Client *c); static void setfullscreen(Client *c, int fullscreen); static void setgaps(const Arg *arg); -static void togglegaps(const Arg *arg); static void switchgaps(const Arg *arg); static void setlayout(const Arg *arg); static void setlayoutsafe(const Arg *arg); @@ -1841,16 +1840,6 @@ setgaps(const Arg *arg) arrange(selmon); } -void -togglegaps(const Arg *arg) -{ - if (selmon->gappx == 0) - selmon->gappx = gappx; - else - selmon->gappx = 0; - arrange(selmon); -} - void switchgaps(const Arg *arg) {