dwm

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

commit 3bcd2edfea4b91bce17bae3f61d1bc8c829f6b57
parent f1cebf11dd0f34a613e8556f607cb9f96311fd90
Author: Markus Hanetzok <markus@hanetzok.net>
Date:   Sun, 30 Mar 2025 01:31:03 +0100

add commands for pulseaudio & mpc

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

diff --git a/config.def.h b/config.def.h @@ -1,5 +1,7 @@ /* See LICENSE file for copyright and license details. */ +#include <X11/XF86keysym.h> + /* appearance */ static const unsigned int borderpx = 2; /* border pixel of windows */ static const unsigned int snap = 32; /* snap pixel */ @@ -85,6 +87,10 @@ 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 Key keys[] = { /* modifier key function argument */ @@ -99,6 +105,12 @@ static const Key keys[] = { { MODKEY|ShiftMask, XK_q, quit, {0} }, { MODKEY|ControlMask|ShiftMask, XK_q, quit, {1} }, + // mpc && pulseaudio + { 0, XF86XK_AudioLowerVolume, spawn, {.v = decvol } }, + { 0, XF86XK_AudioRaiseVolume, spawn, {.v = incvol } }, + { 0, XF86XK_AudioMute, spawn, {.v = mute } }, + { 0, XF86XK_AudioPlay, spawn, {.v = mpctoggle } }, + // layouts { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, // tile { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, // float