[wiki] [sites] Slock - Adds info about dwm key changes for slock mediakeys patch || Akshay Nair

From: <git_AT_suckless.org>
Date: Mon, 03 Aug 2020 14:41:19 +0200

commit 0d3dc828a15982e3b54645cb29f736b979bc4048
Author: Akshay Nair <phenax5_AT_gmail.com>
Date: Mon Aug 3 18:11:10 2020 +0530

    Slock - Adds info about dwm key changes for slock mediakeys patch

diff --git a/tools.suckless.org/slock/patches/mediakeys/index.md b/tools.suckless.org/slock/patches/mediakeys/index.md
index 602dce98..c0de6e47 100644
--- a/tools.suckless.org/slock/patches/mediakeys/index.md
+++ b/tools.suckless.org/slock/patches/mediakeys/index.md
_AT_@ -6,24 +6,38 @@ Description
 This patch allows using the following keys to be used while the screen is
 locked:
 
-- XF86AudioLowerVolume
-- XF86AudioMute
-- XF86AudioRaiseVolume
 - XF86AudioPlay
 - XF86AudioStop
 - XF86AudioPrev
 - XF86AudioNext
+- XF86AudioRaiseVolume
+- XF86AudioLowerVolume
+- XF86AudioMute
+- XF86AudioMicMute
+- XF86MonBrightnessDown
+- XF86MonBrightnessUp
 
 I don't want to unlock the screen just in order to skip the current song or
-raise the volume, that's all there is to it.
+raise the volume, mute, etc that's all there is to it.
+
+NOTE: If you are using dwm for key bindings, in your `dwm.c` file, go to the
+`setup` function to the line with `wa.event_mask =` and add `|KeyPressMask`
+
+```c
+ wa.event_mask = SubstructureRedirectMask|SubstructureNotifyMask
+ |ButtonPressMask|PointerMotionMask|EnterWindowMask
+ |LeaveWindowMask|StructureNotifyMask|PropertyChangeMask|KeyPressMask;
+```
+
 
 Download
 --------
 * [slock-1.4](https://patch-diff.githubusercontent.com/raw/phenax/bslock/pull/1.diff)
 * [slock-mediakeys-20170111-2d2a21a.diff](slock-mediakeys-20170111-2d2a21a.diff)
 
+
 Authors
 -------
 * Klemens Nanni <kl3_AT_posteo.org>
-* Akshay Nair <akshay-n0_AT_protonmail.com>
+* Akshay Nair <akshay-n0_AT_protonmail.com> (1.4 version)
 
Received on Mon Aug 03 2020 - 14:41:19 CEST

This archive was generated by hypermail 2.3.0 : Mon Aug 03 2020 - 14:48:44 CEST