dwm

my build of dwm
git clone git://git.hanetzok.net/dwm
Log | Files | Refs | README | LICENSE

commit 14cd604fbc4165590f989fdf43b2e16bbfb70383
parent 3bcd2edfea4b91bce17bae3f61d1bc8c829f6b57
Author: Markus Hanetzok <markus@hanetzok.net>
Date:   Sun, 30 Mar 2025 14:07:18 +0200

add scratchpad for ncmpcpp

Diffstat:
Mconfig.def.h | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -36,11 +36,13 @@ typedef struct { const char *spcmd1[] = {"st", "-n", "spterm", "-g", "120x34", NULL }; const char *spcmd2[] = {"st", "-n", "spfm", "-g", "144x41", "-e", "ranger", NULL }; const char *spcmd3[] = {"st", "-n", "pmixer", "-g", "144x41", "-e", "pulsemixer", NULL }; +const char *spcmd4[] = {"st", "-n", "spmpc", "-g", "144x41", "-e", "ncmpcpp", NULL }; static Sp scratchpads[] = { /* name cmd */ {"spterm", spcmd1}, {"spranger", spcmd2}, {"pmixer", spcmd3}, + {"spmpc", spcmd4}, }; /* tagging */ @@ -56,6 +58,7 @@ static const Rule rules[] = { { NULL, "spterm", NULL, SPTAG(0), 1, 1, 0, -1 }, { NULL, "spfm", NULL, SPTAG(1), 1, 1, 0, -1 }, { NULL, "pmixer", NULL, SPTAG(2), 1, 1, 0, -1 }, + { NULL, "spmpc", NULL, SPTAG(3), 1, 1, 0, -1 }, }; /* layout(s) */ @@ -142,6 +145,7 @@ static const Key keys[] = { { MODKEY, XK_y, togglescratch, {.ui = 0 } }, { MODKEY, XK_u, togglescratch, {.ui = 1 } }, { MODKEY, XK_p, togglescratch, {.ui = 2 } }, + { MODKEY, XK_n, togglescratch, {.ui = 3 } }, // tags { MODKEY, XK_0, view, {.ui = ~0 } },