made volume control work with dwmblocks module
This commit is contained in:
parent
947e6c080e
commit
3f377bfce6
5 changed files with 5 additions and 3 deletions
8
config.h
8
config.h
|
@ -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
BIN
drw.o
Binary file not shown.
BIN
dwm
BIN
dwm
Binary file not shown.
BIN
dwm.o
BIN
dwm.o
Binary file not shown.
BIN
util.o
BIN
util.o
Binary file not shown.
Loading…
Reference in a new issue