From 1757ff83cb47bd2158b056b2de5c85dc24aff26a Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 22 Apr 2024 17:24:14 +0530 Subject: Added a README, other small changes --- config.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'config.h') diff --git a/config.h b/config.h index a27da91..15a0033 100644 --- a/config.h +++ b/config.h @@ -37,7 +37,8 @@ static const char *colors[][3] = { }; /* tagging */ -static const char *tags[] = { "", "", "", "", "✏", "6", "7", "8", "9" }; + +static const char *tags[] = { "", "", "", "", "", "6", "7", "8", "9" }; /* Custom functions */ static void togglegaps(const Arg *arg); @@ -132,9 +133,6 @@ static Key keys[] = { { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, { MODKEY, XK_Tab, view, {.ui = 0} }, \ - { MODKEY|ShiftMask, XK_Tab, tag, {.ui = 0} }, \ - { MODKEY|ControlMask, XK_Tab, toggleview, {.ui = 0} }, \ - { MODKEY|ControlMask|ShiftMask, XK_Tab, toggletag, {.ui = 0} }, TAGKEYS( XK_1, 0) TAGKEYS( XK_2, 1) TAGKEYS( XK_3, 2) @@ -185,7 +183,8 @@ printgaps(const Arg *arg) { if (!selmon) return; - char *cmd = malloc(sizeof(*cmd) * 24); + char *cmd = malloc(sizeof(*cmd) * 38); sprintf(cmd, "notify-send -u low \"Gaps=%d\"", selmon->gappx); system(cmd); + free(cmd); } -- cgit v1.2.3-13-gbd6f