summaryrefslogtreecommitdiff
path: root/x11-wm/dwm/files/52_keys.diff
diff options
context:
space:
mode:
authormhsn <mail@mhsn.net>2025-07-10 16:12:52 +0100
committermhsn <mail@mhsn.net>2025-07-10 16:12:52 +0100
commit90545ea5a1df0aafcccbd9ee9b3557bfc6a26083 (patch)
tree46c7ce6ffd0da54a9534e681c99df10182cfc5a4 /x11-wm/dwm/files/52_keys.diff
parent2d0d586bdaa06e76a760841bab4d71cda875039b (diff)
downloadadelie-90545ea5a1df0aafcccbd9ee9b3557bfc6a26083.tar.gz
adelie-90545ea5a1df0aafcccbd9ee9b3557bfc6a26083.zip
dwm: move key patchesHEADmaster
Diffstat (limited to 'x11-wm/dwm/files/52_keys.diff')
-rw-r--r--x11-wm/dwm/files/52_keys.diff51
1 files changed, 51 insertions, 0 deletions
diff --git a/x11-wm/dwm/files/52_keys.diff b/x11-wm/dwm/files/52_keys.diff
new file mode 100644
index 0000000..16e43df
--- /dev/null
+++ b/x11-wm/dwm/files/52_keys.diff
@@ -0,0 +1,51 @@
+diff --git i/config.def.h w/config.def.h
+index 4811f38..47920c9 100644
+--- i/config.def.h
++++ w/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 = 1; /* border pixel of windows */
+ static const unsigned int snap = 32; /* snap pixel */
+@@ -60,14 +62,33 @@ static const Layout layouts[] = {
+ #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
+
+ /* commands */
+-static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
+-static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_lilac, "-sf", col_gray4, NULL };
+-static const char *termcmd[] = { "st", NULL };
++static char dmenumon[2] = "0"; /* component of dmenu_cmd, manipulated in spawn() */
++static const char *dmenu_cmd[] = { "dmenu_run", "-m", dmenumon, NULL };
++static const char *term_cmd[] = { "st", NULL };
++static const char *browser_cmd[] = { "librewolf", NULL };
++static const char *files_cmd[] = { "true", NULL }; /* WIP */
++static const char *mail_cmd[] = { "st", "-e", "neomutt", NULL };
++static const char *music_cmd[] = { "st", "-e", "rmpc", NULL };
++static const char *mixer_cmd[] = { "st", "-e", "pulsemixer", NULL };
++static const char *wlan_scan_cmd[] = { "iwctl", "wlp170s0", "scan", NULL };
++
++static const char *vol_up[] = { "wpctl", "set-volume", "@DEFAULT_SINK@", "5%+", NULL };
++static const char *vol_down[] = { "wpctl", "set-volume", "@DEFAULT_SINK@", "5%-", NULL };
++static const char *vol_mute[] = { "wpctl", "set-mute", "@DEFAULT_SINK@", "toggle", NULL };
+
+ static const Key keys[] = {
+ /* modifier key function argument */
+- { MODKEY, XK_p, spawn, {.v = dmenucmd } },
+- { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
++ { MODKEY, XK_p, spawn, {.v = dmenu_cmd } },
++ { MODKEY, XK_q, spawn, {.v = music_cmd } },
++ { MODKEY|ShiftMask XK_q, spawn, {.v = mixer_cmd } },
++ { MODKEY, XK_s, spawn, {.v = term_cmd } },
++ { MODKEY, XK_w, spawn, {.v = browser_cmd } },
++ { MODKEY|ShiftMask XK_w, spawn, {.v = wlan_scan_cmd } },
++ { MODKEY, XK_e, spawn, {.v = files_cmd } },
++ { MODKEY, XK_r, spawn, {.v = mail_cmd } },
++ { 0, XF86XK_AudioRaiseVolume, spawn, { .v = vol_up } },
++ { 0, XF86XK_AudioLowerVolume, spawn, { .v = vol_down } },
++ { 0, XF86XK_AudioMute, spawn, { .v = vol_mute } },
+ { MODKEY, XK_b, togglebar, {0} },
+ { MODKEY, XK_j, focusstack, {.i = +1 } },
+ { MODKEY, XK_k, focusstack, {.i = -1 } },