summaryrefslogtreecommitdiff
path: root/vanitygaps.c
diff options
context:
space:
mode:
authorJon Glueckstein <jglueckstein@gmail.com>2021-03-08 08:57:59 -0500
committerJon Glueckstein <jglueckstein@gmail.com>2021-03-08 08:57:59 -0500
commit6b396d0d8428092363f73d867a122150e0f72ce8 (patch)
treebf3c77d1ff9489edd7be83c81c483c3a6802664e /vanitygaps.c
parentba7a75abf5d69e8eb4477e71067186e8b86539db (diff)
Added function to toggle smartgaps and bound it to Super+Shift+apostrophe.
Diffstat (limited to 'vanitygaps.c')
-rw-r--r--vanitygaps.c8
1 files changed, 8 insertions, 0 deletions
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);
@@ -49,6 +50,13 @@ togglegaps(const Arg *arg)
}
static void
+togglesmartgaps(const Arg *arg)
+{
+ smartgaps = !smartgaps;
+ arrange(NULL);
+}
+
+static void
defaultgaps(const Arg *arg)
{
setgaps(gappoh, gappov, gappih, gappiv);