summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2023-03-03 23:06:29 -0500
committerDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2023-03-03 23:06:29 -0500
commitddeafbf1d8adbeda1bda6bbaa84ce8a43fd62eb0 (patch)
tree395c7e1cc733b0d24e032282b7eec5545520ec07
parent0e20e84a710c6ce152fae2fbb2fa9ac8d9a5a459 (diff)
downloaddwm-ddeafbf1d8adbeda1bda6bbaa84ce8a43fd62eb0.tar.gz
config: renabled audio control keys + added youtube search
-rw-r--r--config.def.h21
1 files changed, 17 insertions, 4 deletions
diff --git a/config.def.h b/config.def.h
index 53ce908..03079c4 100644
--- a/config.def.h
+++ b/config.def.h
@@ -111,6 +111,7 @@ static const Rule rules[] = {
{ NULL, "spmusic", NULL, SPTAG(4), 1, 1, 0, -1 },
{ NULL, "sptop", NULL, SPTAG(5), 1, 1, 0, -1 },
{ NULL, NULL, "Gnuplot Window", 0, 0, 0, 1, -1 },
+ { "prog.py", NULL, NULL, 0, 0, 0, 1, -1 },
};
/* layout(s) */
@@ -301,7 +302,7 @@ static Key keys[] = {
{ MODKEY, XK_i, setlayout, {.v = &layouts[11]} },
{ MODKEY, XK_o, setlayout, {.v = &layouts[7]} },
{ MODKEY, XK_p, spawn, SHCMD("toggle-picom") },
- //{ MODKEY, XK_bracketleft, <stuff>, {} },
+ { MODKEY, XK_bracketleft, spawn, SHCMD("st -e search -y") },
//{ MODKEY, XK_bracketright, <stuff>, {} },
//{ MODKEY, XK_backslash, <stuff>, {} },
@@ -414,10 +415,22 @@ static Key keys[] = {
/* XF86 Media Keybindings */
+
+ { 0, XF86XK_AudioMute, spawn, { .v = sndoutput_mute }},
+ { 0, XF86XK_AudioMute, spawn, { .v = snd_update_bar }},
+ { 0, XF86XK_AudioRaiseVolume, spawn, { .v = sndoutput_up }},
+ { 0, XF86XK_AudioRaiseVolume, spawn, { .v = snd_update_bar }},
+ { 0, XF86XK_AudioLowerVolume, spawn, {.v = sndoutput_down }},
+ { 0, XF86XK_AudioLowerVolume, spawn, {.v = snd_update_bar }},
+
+ { 0|ShiftMask, XF86XK_AudioMute, spawn, { .v = sndinput_mute }},
+ { 0|ShiftMask, XF86XK_AudioMute, spawn, { .v = snd_update_bar }},
+ { 0|ShiftMask, XF86XK_AudioRaiseVolume, spawn, { .v = sndinput_up }},
+ { 0|ShiftMask, XF86XK_AudioRaiseVolume, spawn, { .v = snd_update_bar }},
+ { 0|ShiftMask, XF86XK_AudioLowerVolume, spawn, {.v = sndinput_down }},
+ { 0|ShiftMask, XF86XK_AudioLowerVolume, spawn, {.v = snd_update_bar }},
+
/*
- { 0, XF86XK_AudioMute, spawn, SHCMD("pamixer -t; kill -44 $(pidof dwmblocks)") },
- { 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("pamixer --allow-boost -i 3; kill -44 $(pidof dwmblocks)") },
- { 0, XF86XK_AudioLowerVolume, spawn, SHCMD("pamixer --allow-boost -d 3; kill -44 $(pidof dwmblocks)") },
{ 0, XF86XK_AudioPrev, spawn, SHCMD("mpc prev") },
{ 0, XF86XK_AudioNext, spawn, SHCMD("mpc next") },
{ 0, XF86XK_AudioPause, spawn, SHCMD("mpc pause") },