sites

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 78a14be18e3095d44d814229548739a7baac2edb
parent 51d52066a167742b526e235b8692596f07a94554
Author: Klemens Nanni <kl3@posteo.org>
Date:   Tue, 30 Aug 2016 01:22:29 +0200

Add snownews to rocks page

Diffstat:
Msuckless.org/rocks.md | 1+
Atools.suckless.org/slock/patches/slock-mediakeys-20160729-0f4694a.diff | 48++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 49 insertions(+), 0 deletions(-)

diff --git a/suckless.org/rocks.md b/suckless.org/rocks.md @@ -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 @@ -0,0 +1,48 @@ +From 0f4694a7feef3b645a257ab02f631f75dc217b08 Mon Sep 17 00:00:00 2001 +From: Klemens Nanni <kl3@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 +@@ -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> +@@ -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; +@@ -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 +