made volume control work with dwmblocks module

This commit is contained in:
Noah Swerhun 2021-06-04 23:20:41 -05:00
parent 947e6c080e
commit 3f377bfce6
5 changed files with 5 additions and 3 deletions

View file

@ -93,10 +93,11 @@ static const char *browser[] = { BROWSER, NULL };
static const char *passmenu[] = { "passmenu", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, "-l", "5", "-i", NULL }; static const char *passmenu[] = { "passmenu", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, "-l", "5", "-i", NULL };
static const char *manmenu[] = { "/home/noah/.local/bin/manmenu", NULL }; static const char *manmenu[] = { "/home/noah/.local/bin/manmenu", NULL };
static const char *scrotselection[] = { "/usr/bin/scrot", "-s", "~/pcs/screenshots/%Y-%m-%d-%s%w%h.jpg", NULL }; static const char *scrotselection[] = { "/usr/bin/scrot", "-s", "~/pcs/screenshots/%Y-%m-%d-%s%w%h.jpg", NULL };
static const char *upvol[] = { "/usr/bin/pactl", "set-sink-volume", "@DEFAULT_SINK@", "+2%", NULL }; static const char *upvol[] = { "/home/noah/.local/bin/volcontrol", "up", NULL };
static const char *downvol[] = { "/usr/bin/pactl", "set-sink-volume", "@DEFAULT_SINK@", "-2%", NULL }; static const char *downvol[] = { "/home/noah/.local/bin/volcontrol", "down", NULL };
static const char *mutevol[] = { "/usr/bin/pactl", "set-sink-mute", "@DEFAULT_SINK@", "toggle", NULL }; static const char *mutevol[] = { "/home/noah/.local/bin/volcontrol", "mute", NULL };
static const char *pulsemixer[] = { TERMINAL, "-e", "/usr/bin/pulsemixer", NULL }; static const char *pulsemixer[] = { TERMINAL, "-e", "/usr/bin/pulsemixer", NULL };
static const char *scratchpad[] = { TERMINAL, "-e", "/usr/bin/nvim", "$(mktemp)", NULL };
static const char *uni[] = { "/home/noah/.local/bin/uni", NULL }; static const char *uni[] = { "/home/noah/.local/bin/uni", NULL };
static Key keys[] = { static Key keys[] = {
@ -130,6 +131,7 @@ static Key keys[] = {
{ MODKEY, XK_e, spawn, {.v = pulsemixer } }, { MODKEY, XK_e, spawn, {.v = pulsemixer } },
{ MODKEY, XK_y, spawn, {.v = manmenu } }, { MODKEY, XK_y, spawn, {.v = manmenu } },
{ MODKEY, XK_r, spawn, {.v = uni } }, { MODKEY, XK_r, spawn, {.v = uni } },
{ MODKEY, XK_s, spawn, {.v = scratchpad } },
{ 0, XF86XK_AudioRaiseVolume, spawn, {.v = upvol } }, { 0, XF86XK_AudioRaiseVolume, spawn, {.v = upvol } },
{ 0, XF86XK_AudioLowerVolume, spawn, {.v = downvol } }, { 0, XF86XK_AudioLowerVolume, spawn, {.v = downvol } },
{ 0, XF86XK_AudioMute, spawn, {.v = mutevol } }, { 0, XF86XK_AudioMute, spawn, {.v = mutevol } },

BIN
drw.o

Binary file not shown.

BIN
dwm

Binary file not shown.

BIN
dwm.o

Binary file not shown.

BIN
util.o

Binary file not shown.