commit 8e755f867cd13fec9a01e3113783ffbcc3e82b70
parent 0f7c332b153b17afb8fc3d3134fb790baba7e95f
Author: Markus Hanetzok <markus@hanetzok.net>
Date: Thu, 18 Dec 2025 12:18:34 +0100
add scratchpad for ncmpcpp
Diffstat:
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/config.def.h b/config.def.h
@@ -20,8 +20,8 @@ static const int horizpadbar = 2; /* horizontal padding for status
static const int vertpadbar = 5; /* vertical padding for statusbar */
static const int vertpad = 10; /* vertical padding of bar */
static const int sidepad = 10; /* horizontal padding of bar */
-static const char *fonts[] = { "monospace:size=10" };
-static const char dmenufont[] = "monospace:size=10";
+static const char *fonts[] = { "monospace:size=12" };
+static const char dmenufont[] = "monospace:size=12";
static char normbgcolor[] = "#222222";
static char normbordercolor[] = "#444444";
static char normfgcolor[] = "#bbbbbb";
@@ -41,11 +41,14 @@ typedef struct {
const char *spcmd1[] = {"st", "-n", "spmixer", "-g", "120x34", "-e", "pulsemixer", NULL };
const char *spcmd2[] = {"st", "-n", "spfm", "-g", "144x41", "-e", "ranger", NULL };
const char *spcmd3[] = {"keepassxc", NULL };
+const char *spcmd4[] = {"st", "-n", "spmpc", "-g", "144,41", "-e", "ncmpcpp", "NULL" };
+
static Sp scratchpads[] = {
/* name cmd */
{"spmixer", spcmd1},
{"spranger", spcmd2},
{"keepassxc", spcmd3},
+ {"spmpc", spcmd4},
};
/* tagging */
@@ -63,6 +66,7 @@ static const Rule rules[] = {
{ NULL, "spmixer", NULL, SPTAG(0), 1, 1, 1, -1 },
{ NULL, "spfm", NULL, SPTAG(1), 1, 1, 1, -1 },
{ NULL, "keepassxc", NULL, SPTAG(2), 0, 0, 1, -1 },
+ { NULL, "spmpc", NULL, SPTAG(3), 1, 1, 1, -1 },
};
/* layout(s) */
@@ -122,6 +126,7 @@ static Key keys[] = {
{ MODKEY, XK_p, togglescratch, {.ui = 0 } },
{ MODKEY, XK_u, togglescratch, {.ui = 1 } },
{ MODKEY, XK_x, togglescratch, {.ui = 2 } },
+ { MODKEY, XK_n, togglescratch, {.ui = 3 } },
{ MODKEY, XK_F5, xrdb, {.v = NULL } },
{ MODKEY|ShiftMask, XK_h, incrgaps, {.i = +1 } },
{ MODKEY|ShiftMask, XK_l, incrgaps, {.i = -1 } },