aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-04-22 17:24:14 +0530
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-04-22 17:24:14 +0530
commit1757ff83cb47bd2158b056b2de5c85dc24aff26a (patch)
tree1dd7368ec25bde0a5694fb5095dd639cf673583d /config.h
parentaabccefea1d4c8b5ffe6ad0dcdaac1612d502d92 (diff)
downloaddwm-1757ff83cb47bd2158b056b2de5c85dc24aff26a.tar.gz
dwm-1757ff83cb47bd2158b056b2de5c85dc24aff26a.tar.bz2
dwm-1757ff83cb47bd2158b056b2de5c85dc24aff26a.zip
Added a README, other small changes
Diffstat (limited to 'config.h')
-rw-r--r--config.h9
1 files changed, 4 insertions, 5 deletions
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);
}