dwm

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

commit ca40faf996c0feca1234c410de262dc73863aee2
parent df3cc455d59925d63af66523ca6e494b86d4dfb8
Author: Markus Hanetzok <markus@hanetzok.net>
Date:   Mon, 31 Mar 2025 22:02:17 +0200

extend mpc commands

Diffstat:
Mconfig.def.h | 10+++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/config.def.h b/config.def.h @@ -95,12 +95,14 @@ static const Layout layouts[] = { static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_normbg, "-nf", col_normfg, "-sb", col_selbg, "-sf", col_selfg, NULL }; static const char *termcmd[] = { "st", NULL }; -static const char *mpctoggle[] = { "mpc", "toggle", NULL }; static const char *mute[] = { "pamixer", "-t", NULL }; static const char *incvol[] = { "pamixer", "-i", "5", NULL }; static const char *decvol[] = { "pamixer", "-d", "5", NULL }; static const char *sysact[] = { "sysact", NULL }; static const char *passmenu[] = { "passmenu", NULL }; +static const char *mpctoggle[] = { "mpc", "toggle", NULL }; +static const char *mpcnext[] = { "mpc", "next", NULL }; +static const char *mpcprev[] = { "mpc", "prev", NULL }; static const Key keys[] = { /* modifier key function argument */ @@ -125,6 +127,12 @@ static const Key keys[] = { { 0, XF86XK_AudioRaiseVolume, spawn, {.v = incvol } }, { 0, XF86XK_AudioMute, spawn, {.v = mute } }, { 0, XF86XK_AudioPlay, spawn, {.v = mpctoggle } }, + { MODKEY, XK_minus, spawn, {.v = decvol } }, + { MODKEY, XK_equal, spawn, {.v = incvol } }, + { MODKEY|ShiftMask, XK_m, spawn, {.v = mute } }, + { MODKEY|ShiftMask, XK_p, spawn, {.v = mpctoggle } }, + { MODKEY|ShiftMask, XK_minus, spawn, {.v = mpcprev } }, + { MODKEY|ShiftMask, XK_equal, spawn, {.v = mpcnext } }, // layouts { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, // tile