[dev] Re: [dwm] X11/XF86keysym.h is not available
Steffen Nurpmeso wrote in
<20240912001039.k3mbXC1z_AT_steffen%sdaoden.eu>:
|..and isn't that mysterious, do you all live without any
|accessibility to these media keys in dwm? I have written
|
| XF86 media key spawn hook..
...
i mean, maybe you all just do things like
--- a/config.def.h
+++ b/config.def.h
_AT_@ -1,4 +1,5 @@
/* See LICENSE file for copyright and license details. */
+#include <X11/XF86keysym.h>
...
+#define a_XF86_CMD(X) static const char *xf86_ ## X[] = { "adjust-xf86-mediahooks.sh", #X, NULL }
+a_XF86_CMD(AudioLowerVolume);
+a_XF86_CMD(AudioRaiseVolume);
+a_XF86_CMD(AudioMute);
+a_XF86_CMD(MonBrightnessDown);
+a_XF86_CMD(MonBrightnessUp);
+#undef a_XF86_CMD
+#define a_XF86_CMD(X) {0, XF86XK_ ## X, spawn, {.v = xf86_ ## X}}
static const Key keys[] = {
...
+a_XF86_CMD(AudioLowerVolume),
+a_XF86_CMD(AudioRaiseVolume),
+a_XF86_CMD(AudioMute),
+a_XF86_CMD(MonBrightnessDown),
+a_XF86_CMD(MonBrightnessUp)
Oh well, i am silent now. (I was only surprised to see no xf86
stuff in patches/ at all.)
Good night, ciao,
--steffen
|
|Der Kragenbaer, The moon bear,
|der holt sich munter he cheerfully and one by one
|einen nach dem anderen runter wa.ks himself off
|(By Robert Gernhardt)
Received on Thu Sep 12 2024 - 05:07:22 CEST
This archive was generated by hypermail 2.3.0
: Thu Sep 12 2024 - 21:12:08 CEST