From 6b396d0d8428092363f73d867a122150e0f72ce8 Mon Sep 17 00:00:00 2001 From: Jon Glueckstein Date: Mon, 8 Mar 2021 08:57:59 -0500 Subject: Added function to toggle smartgaps and bound it to Super+Shift+apostrophe. --- vanitygaps.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'vanitygaps.c') diff --git a/vanitygaps.c b/vanitygaps.c index 7245e74..4c98e69 100644 --- a/vanitygaps.c +++ b/vanitygaps.c @@ -8,6 +8,7 @@ static void incrgaps(const Arg *arg); /* static void incrihgaps(const Arg *arg); */ /* static void incrivgaps(const Arg *arg); */ static void togglegaps(const Arg *arg); +static void togglesmartgaps(const Arg *arg); /* Layouts */ static void bstack(Monitor *m); @@ -48,6 +49,13 @@ togglegaps(const Arg *arg) arrange(NULL); } +static void +togglesmartgaps(const Arg *arg) +{ + smartgaps = !smartgaps; + arrange(NULL); +} + static void defaultgaps(const Arg *arg) { -- cgit v1.2.3