[wiki] [sites] Add snownews to rocks page || Klemens Nanni

From: <git_AT_suckless.org>
Date: Tue, 30 Aug 2016 01:22:39 +0200

commit 78a14be18e3095d44d814229548739a7baac2edb
Author: Klemens Nanni <kl3_AT_posteo.org>
Date: Tue Aug 30 01:22:29 2016 +0200

    Add snownews to rocks page

diff --git a/suckless.org/rocks.md b/suckless.org/rocks.md
index 103c526..13b9c3a 100644
--- a/suckless.org/rocks.md
+++ b/suckless.org/rocks.md
_AT_@ -69,6 +69,7 @@ BitTorrent Clients
 Feed aggregators
 ----------------
 * [newsbeuter](http://www.newsbeuter.org/)
+* [snownews](https://kiza.eu/software/snownews/) - Text mode RSS newsreader for Linux and Unix
 
 File browsers
 -------------
diff --git a/tools.suckless.org/slock/patches/slock-mediakeys-20160729-0f4694a.diff b/tools.suckless.org/slock/patches/slock-mediakeys-20160729-0f4694a.diff
new file mode 100644
index 0000000..ed06e35
--- /dev/null
+++ b/tools.suckless.org/slock/patches/slock-mediakeys-20160729-0f4694a.diff
_AT_@ -0,0 +1,48 @@
+From 0f4694a7feef3b645a257ab02f631f75dc217b08 Mon Sep 17 00:00:00 2001
+From: Klemens Nanni <kl3_AT_posteo.org>
+Date: Fri, 29 Jul 2016 02:14:48 +0200
+Subject: [PATCH] Allow media hotkeys
+
+---
+ slock.c | 11 +++++++++++
+ 1 file changed, 11 insertions(+)
+
+diff --git a/slock.c b/slock.c
+index c9cdee2..9781aa8 100644
+--- a/slock.c
++++ b/slock.c
+_AT_@ -17,6 +17,7 @@
+ #include <X11/keysym.h>
+ #include <X11/Xlib.h>
+ #include <X11/Xutil.h>
++#include <X11/XF86keysym.h>
+
+ #if HAVE_BSD_AUTH
+ #include <login_cap.h>
+_AT_@ -122,6 +123,7 @@ readpw(Display *dpy, const char *pws)
+ char buf[32], passwd[256];
+ int num, screen;
+ unsigned int len, color;
++ Window win;
+ KeySym ksym;
+ XEvent ev;
+ static int oldc = INIT;
+_AT_@ -170,6 +172,15 @@ readpw(Display *dpy, const char *pws)
+ if (len)
+ --len;
+ break;
++ case XF86XK_AudioLowerVolume:
++ case XF86XK_AudioMute:
++ case XF86XK_AudioRaiseVolume:
++ case XF86XK_AudioPlay:
++ case XF86XK_AudioStop:
++ case XF86XK_AudioPrev:
++ case XF86XK_AudioNext:
++ XSendEvent(dpy, win, True, KeyPressMask, &ev);
++ break;
+ default:
+ if (num && !iscntrl((int)buf[0]) && (len + num < sizeof(passwd))) {
+ memcpy(passwd + len, buf, num);
+--
+2.8.3
+
Received on Tue Aug 30 2016 - 01:22:39 CEST

This archive was generated by hypermail 2.3.0 : Tue Aug 30 2016 - 01:24:15 CEST