From 4947ecce95f713da2f89aad0f72e18786efe2692 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 29 Mar 2020 12:03:24 -0400 Subject: [PATCH] lmc required for alsa/pulse integration --- config.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/config.h b/config.h index cf06611..f8a813f 100644 --- a/config.h +++ b/config.h @@ -101,10 +101,10 @@ static Key keys[] = { TAGKEYS( XK_9, 8) { MODKEY, XK_0, view, {.ui = ~0 } }, { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, - { MODKEY, XK_minus, spawn, SHCMD("amixer sset Master 5%- ; pkill -RTMIN+10 dwmblocks") }, - { MODKEY|ShiftMask, XK_minus, spawn, SHCMD("amixer sset Master 15%- ; pkill -RTMIN+10 dwmblocks") }, - { MODKEY, XK_equal, spawn, SHCMD("amixer sset Master 5%+ ; pkill -RTMIN+10 dwmblocks") }, - { MODKEY|ShiftMask, XK_equal, spawn, SHCMD("amixer sset Master 15%+ ; pkill -RTMIN+10 dwmblocks") }, + { MODKEY, XK_minus, spawn, SHCMD("lmc down") }, + { MODKEY|ShiftMask, XK_minus, spawn, SHCMD("lmc down 15") }, + { MODKEY, XK_equal, spawn, SHCMD("lmc up") }, + { MODKEY|ShiftMask, XK_equal, spawn, SHCMD("lmc up 15") }, /* { MODKEY, XK_BackSpace, spawn, SHCMD("") }, */ { MODKEY|ShiftMask, XK_BackSpace, spawn, SHCMD("[ \"$(printf \"No\\nYes\" | dmenu -i -nb darkred -sb red -sf white -nf gray -p \"Reboot computer?\")\" = Yes ] && sudo -A reboot") }, @@ -137,7 +137,7 @@ static Key keys[] = { { MODKEY, XK_backslash, view, {0} }, /* { MODKEY|ShiftMask, XK_backslash, spawn, SHCMD("") }, */ - { MODKEY, XK_a, spawn, SHCMD("st -e alsamixer ; pkill -RTMIN+10 dwmblocks") }, + { MODKEY, XK_a, spawn, SHCMD("st -e lmc control") }, /* { MODKEY|ShiftMask, XK_a, spawn, SHCMD("") }, */ { MODKEY, XK_s, togglesticky, {0} }, /* { MODKEY|ShiftMask, XK_s, spawn, SHCMD("") }, */ @@ -170,7 +170,7 @@ static Key keys[] = { { MODKEY, XK_n, spawn, SHCMD("st -e newsboat; pkill -RTMIN+6 dwmblocks") }, { MODKEY|ShiftMask, XK_n, spawn, SHCMD("hover right") }, { MODKEY, XK_m, spawn, SHCMD("st -e ncmpcpp") }, - { MODKEY|ShiftMask, XK_m, spawn, SHCMD("amixer sset Master toggle ; pkill -RTMIN+10 dwmblocks") }, + { MODKEY|ShiftMask, XK_m, spawn, SHCMD("lmc toggle") }, { MODKEY, XK_comma, spawn, SHCMD("mpc prev") }, { MODKEY|ShiftMask, XK_comma, spawn, SHCMD("mpc seek 0%") }, { MODKEY, XK_period, spawn, SHCMD("mpc next") }, @@ -202,9 +202,9 @@ static Key keys[] = { { MODKEY, XK_Delete, spawn, SHCMD("dmenurecord kill") }, { MODKEY, XK_Scroll_Lock, spawn, SHCMD("killall screenkey || screenkey &") }, - { 0, XF86XK_AudioMute, spawn, SHCMD("amixer sset Master toggle ; pkill -RTMIN+10 dwmblocks") }, - { 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("amixer sset Master 5%+ ; pkill -RTMIN+10 dwmblocks") }, - { 0, XF86XK_AudioLowerVolume, spawn, SHCMD("amixer sset Master 5%- ; pkill -RTMIN+10 dwmblocks") }, + { 0, XF86XK_AudioMute, spawn, SHCMD("lmc toggle") }, + { 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("lmc up") }, + { 0, XF86XK_AudioLowerVolume, spawn, SHCMD("lmc down") }, { 0, XF86XK_AudioPrev, spawn, SHCMD("mpc prev") }, { 0, XF86XK_AudioNext, spawn, SHCMD("mpc next") }, { 0, XF86XK_AudioPause, spawn, SHCMD("mpc pause") },