From unknown Wed Jun 18 23:05:57 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#40312 <40312@debbugs.gnu.org> To: bug#40312 <40312@debbugs.gnu.org> Subject: Status: [PATCH 0/3]: Add Piper and libratbag Reply-To: bug#40312 <40312@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:05:57 +0000 retitle 40312 [PATCH 0/3]: Add Piper and libratbag reassign 40312 guix-patches submitter 40312 Brendan Tildesley severity 40312 normal tag 40312 patch thanks From mail@brendan.scot Sun Mar 29 06:12:44 2020 Received: (at submit) by debbugs.gnu.org; 30 Mar 2020 02:35:36 +0000 Received: from lists.gnu.org ([209.51.188.17]:47273) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIUvs-0001Y8-51 for submit@debbugs.gnu.org; Sun, 29 Mar 2020 06:12:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38544) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIUvq-0001mj-V3 for guix-patches@gnu.org; Sun, 29 Mar 2020 06:12:43 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIUvn-00084k-R2 for guix-patches@gnu.org; Sun, 29 Mar 2020 06:12:41 -0400 Received: from mout-p-202.mailbox.org ([2001:67c:2050::465:202]:42328) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jIUvm-00082v-Nm for guix-patches@gnu.org; Sun, 29 Mar 2020 06:12:39 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 48qrxZ41q7zQlGM for ; Sun, 29 Mar 2020 12:12:34 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brendan.scot; s=MBO0001; t=1585476752; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=FK/6wLUP6e50q9+0MaMqeHXsLL6J+ciMMFR/PZOLKjA=; b=lAuv2bXnoQ8N/LGlzUH+lYTYunevSCkpuyx2qMaVNMSHJA8tDG6HS/kSAaatgSBg9x9Kjd 8XCT/BnER4MKyDP9xZPZb5VXBsXuUdvjE7A3CUwk5yoKzi0q2/ni92diRlpsROOrtTrG5K OPLsMZONa2EEcxEUQtORyqbomub1eJe7+HBTNU68RyXCAP6wDIAonaOcPCQ97YWgBxiioF AYTO4/IBqViqhScSnxFxr6UVHRv5LYZ8I21svYnF3SwlahDtJgnpH2bm5V9wcTqQkiIcvu C4zmqOtUqeEguQ/mJ8uGqNY4eJVndk1TPEifeNbJ9sRogZZ9Bh/4iRnfzljOng== Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter06.heinlein-hosting.de (spamfilter06.heinlein-hosting.de [80.241.56.125]) (amavisd-new, port 10030) with ESMTP id qocQbKlvo9Ek for ; Sun, 29 Mar 2020 12:12:31 +0200 (CEST) To: guix-patches@gnu.org From: Brendan Tildesley Subject: [PATCH 0/3]: Add Piper and libratbag Message-ID: <99b3cb1d-94d0-d3b3-a64b-873eb5edea36@brendan.scot> Date: Sun, 29 Mar 2020 21:12:21 +1100 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:67c:2050::465:202 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Mar 2020 10:12:44 -0000 So this program Piper is unique in that it is entirely useless without the the ratbagd daemon running. eventually, I'd like for a user to be able to install all that in 1 click from a GUI with just their sudo password if needed. For now, I've included in the descriptions a simple service that makes it work. With systemd systems, when Piper is opened and dbus automagically starts ratbagd, systemctl lists it as a ratbagd.service. systemctl stop ratbagd.service can the stop it if needed. With the simple service I've provided in the descriptions, herd status does not list it as a service and only reconfiguring can disable it... I think. Is there a way I can write a service that shows ratbag in herd status, and can start/stop it correctly? Or does herd not have the ability to treat dbus services as first class services? N.B, if you want to test the package you can just run sudo ratbagd, then open piper. if it says cannot find any devices, that means it working but you wont be able to use it without one of the supported devices to play with.. From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 30 00:17:50 2020 Received: (at 40312) by debbugs.gnu.org; 30 Mar 2020 04:17:50 +0000 Received: from localhost ([127.0.0.1]:60329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIlrq-00017P-PI for submit@debbugs.gnu.org; Mon, 30 Mar 2020 00:17:50 -0400 Received: from mout-p-202.mailbox.org ([80.241.56.172]:62744) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIlro-000173-EJ for 40312@debbugs.gnu.org; Mon, 30 Mar 2020 00:17:42 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 48rK1V1LbfzQlFn for <40312@debbugs.gnu.org>; Mon, 30 Mar 2020 06:17:34 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brendan.scot; s=MBO0001; t=1585541852; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=L/AELRZpEDAcix4EfhB+QlEIokgAEnZbEdSQTwrc9Ws=; b=KeJyRlSVjOI57afy7v8C9GjYyrwsn/XnWX21pTKzVWvHdYAqsWgvQbvwm7YCQr0C5Ldfep 08a/xJOI004/zmpPZ7BQ+B+NrbK9x9fT9tfdi3of9N78A/srlreCnuUfj3FOM9oHTr0eg/ aTU4T0JHy6QDkQWzwHWgIilke6Xu94W0C+xjrz/FQuAOMd84dRCU2ZOchyBtaFfYl6p4Nc JyWaM5OhbWcJ9mNwqpJ6bT507BXUtJ8QO9AgtDK8eTfHPVpE5cvyvetJUanIhhYMRThWlz f4i8Au+DajcDN+hBrGUfAbWNVySZn1G2OP64m7P7ds5272VNaG1D+oE20nMm/w== Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id j768biSqZkhi for <40312@debbugs.gnu.org>; Mon, 30 Mar 2020 06:17:30 +0200 (CEST) From: Brendan Tildesley To: 40312@debbugs.gnu.org Subject: [PATCH 1/3] gnu: Add python-evdev. Date: Mon, 30 Mar 2020 15:16:49 +1100 Message-Id: <20200330041651.16348-1-mail@brendan.scot> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 40312 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/linux.scm (python-evdev): New variable. --- gnu/packages/linux.scm | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 8fec3352f3..0062e1d40f 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -28,7 +28,7 @@ ;;; Copyright © 2017 nee ;;; Copyright © 2017 Dave Love ;;; Copyright © 2018 Pierre-Antoine Rouby -;;; Copyright © 2018 Brendan Tildesley +;;; Copyright © 2018, 2020 Brendan Tildesley ;;; Copyright © 2018 Manuel Graf ;;; Copyright © 2018 Pierre Langlois ;;; Copyright © 2018 Vasile Dumitrascu @@ -2922,6 +2922,46 @@ time.") (define-public eudev-with-hwdb (deprecated-package "eudev-with-hwdb" eudev)) +(define-public python-evdev + (package + (name "python-evdev") + (version "1.3.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "evdev" version)) + (sha256 + (base32 + "0kb3636yaw9l8xi8s184w0r0n9ic5dw3b8hx048jf9fpzss4kimi")))) + (build-system python-build-system) + (native-inputs + `(("kernel-headers" ,linux-libre-headers))) + (arguments + `(#:tests? #f ;; No rule for tests + #:phases + (modify-phases %standard-phases + (add-before 'build 'patch-patch + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "setup.py" + (("/usr/include/linux") + (string-append + (assoc-ref inputs "kernel-headers") "/include/linux"))) + #t))))) + (home-page + "https://python-evdev.readthedocs.io/en/latest/") + (synopsis + "Bindings to the Linux input handling subsystem") + (description + "@command{python-evdev} provides bindings to the generic input event +interface in Linux. The @command{evdev} interface serves the purpose of +passing events generated in the kernel directly to userspace through character +devices that are typically located in @command{/dev/input/}. + +This package also comes with bindings to @command{uinput}, the userspace input +subsystem. @command{uinput} allows userspace programs to create and handle +input devices that can inject events directly into the input subsystem.") + (license license:bsd-3))) + (define-public lvm2 (package (name "lvm2") -- 2.25.2 From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 30 00:17:50 2020 Received: (at 40312) by debbugs.gnu.org; 30 Mar 2020 04:17:50 +0000 Received: from localhost ([127.0.0.1]:60332 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIlry-00017g-5k for submit@debbugs.gnu.org; Mon, 30 Mar 2020 00:17:50 -0400 Received: from mout-p-102.mailbox.org ([80.241.56.152]:53952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIlrp-000177-Ry for 40312@debbugs.gnu.org; Mon, 30 Mar 2020 00:17:42 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 48rK1X0QVRzKmg2 for <40312@debbugs.gnu.org>; Mon, 30 Mar 2020 06:17:36 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brendan.scot; s=MBO0001; t=1585541853; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RKB+pmjyn9V4KoK7nFdHt/BxvUwUSzYqG02UYmnd0AA=; b=dJVvpQ4MfZMIOperDQk0sJqJSlupVA5V7O3jHeG+sUsILOs7aZzxWrzF5yYm6RBjPWmW5n u+gsP/j9u0siqsHMUC+kqBfNa+6naByuPjC/mfUA5QCIqAL1Xcu80oj1spPDi9WntNz6+b gKoXrHTEFwaV2eROwH6Zq0RKThuEkZYm0Hy2WZHsBdzKaSeDXDUvZ/hT5VvsU9wZJmXjhc 5313iaIytaPtf5P+T5/Eu+qfdC4xx7y0jvGRknD1lJ3UELp6ycAJ1tyORzSBtWL22ZG77V v+NjGu/BJrS9Ovrwg/SyUZSSLmb7WusO+OvxLv/ia0hBL80q63qNO1yqRnQgow== Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter05.heinlein-hosting.de (spamfilter05.heinlein-hosting.de [80.241.56.123]) (amavisd-new, port 10030) with ESMTP id 4tNvQRHrww4z for <40312@debbugs.gnu.org>; Mon, 30 Mar 2020 06:17:32 +0200 (CEST) From: Brendan Tildesley To: 40312@debbugs.gnu.org Subject: [PATCH 2/3] gnu: Add libratbag. Date: Mon, 30 Mar 2020 15:16:50 +1100 Message-Id: <20200330041651.16348-2-mail@brendan.scot> In-Reply-To: <20200330041651.16348-1-mail@brendan.scot> References: <20200330041651.16348-1-mail@brendan.scot> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 40312 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/gnome.scm (libratbag): New variable. --- gnu/packages/gnome.scm | 71 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 70 insertions(+), 1 deletion(-) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index bc78910c64..d44e9ea5e7 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -27,7 +27,7 @@ ;;; Copyright © 2017, 2018 nee ;;; Copyright © 2017 Chris Marusich ;;; Copyright © 2017 Mohammed Sadiq -;;; Copyright © 2017 Brendan Tildesley +;;; Copyright © 2017, 2020 Brendan Tildesley ;;; Copyright © 2017, 2018 Rutger Helling ;;; Copyright © 2018 Jovany Leandro G.C ;;; Copyright © 2018 Vasile Dumitrascu @@ -159,10 +159,12 @@ #:use-module (gnu packages speech) #:use-module (gnu packages spice) #:use-module (gnu packages sqlite) + #:use-module (gnu packages swig) #:use-module (gnu packages ssh) #:use-module (gnu packages tex) #:use-module (gnu packages time) #:use-module (gnu packages tls) + #:use-module (gnu packages valgrind) #:use-module (gnu packages version-control) #:use-module (gnu packages video) #:use-module (gnu packages virtualization) @@ -9889,3 +9891,70 @@ to.") license:public-domain ;; snowball license:bsd-2)))) + +(define-public libratbag + (package + (name "libratbag") + (version "0.13") + (source (origin + (method url-fetch) + (uri + (string-append + "https://github.com/libratbag/libratbag/archive/v" version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1j8ryzrljqcp0c1wqzzpgr5fqdmwqr5z99avkxwfs7kqwm8ii9xh")))) + (build-system meson-build-system) + (native-inputs `(("pkg-config" ,pkg-config) + ("check" ,check) + ("swig" ,swig) + ("valgrind" ,valgrind))) + (inputs `(("glib" ,glib) + ("json-glib" ,json-glib) + ("libevdev" ,libevdev) + ("udev" ,eudev) + ("libunistring" ,libunistring) + ("python-pygobject" ,python-pygobject) + ("python-evdev" ,python-evdev) + ("libsystemd" ,elogind))) + (arguments + `(#:configure-flags + (list "-Dsystemd=false" + "-Dlogind-provider=elogind") + #:phases + (modify-phases %standard-phases + ;; (add-after 'install 'wrap-python + ;; (assoc-ref python:%standard-phases 'wrap)) + (add-after 'install 'wrap + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (site (string-append + "/lib/python" + ,(version-major+minor (package-version python)) + "/site-packages")) + (evdev (string-append + (assoc-ref inputs "python-evdev") site)) + (pygo (string-append + (assoc-ref inputs "python-pygobject") site)) + (python-wrap + `("PYTHONPATH" = (,evdev ,pygo)))) + (wrap-program (string-append out "/bin/" "ratbagctl") + python-wrap) + #t)))))) + (home-page "https://github.com/libratbag/libratbag") + (synopsis "DBus daemon and utility for configuring gaming mice") + (description "libratbag provides @command{ratbagd}, a DBus daemon to +configure input devices, mainly gaming mice. The daemon provides a generic +way to access the various features exposed by these mice and abstracts away +hardware-specific and kernel-specific quirks. There is also the +@command{ratbagctl} command line interface for configuring devices. + +libratbag currently supports devices from Logitech, Etekcity, GSkill, Roccat, +Steelseries. + +The ratbagd dbus service can be enabled by adding the following service to +your operating-system definition: +(simple-service 'ratbagd dbus-root-service-type (list libratbag)) +") + (license license:expat))) -- 2.25.2 From debbugs-submit-bounces@debbugs.gnu.org Mon Mar 30 00:17:50 2020 Received: (at 40312) by debbugs.gnu.org; 30 Mar 2020 04:17:50 +0000 Received: from localhost ([127.0.0.1]:60334 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIlry-00017m-HN for submit@debbugs.gnu.org; Mon, 30 Mar 2020 00:17:50 -0400 Received: from mout-p-101.mailbox.org ([80.241.56.151]:51874) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jIlrr-00017A-F9 for 40312@debbugs.gnu.org; Mon, 30 Mar 2020 00:17:44 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 48rK1Y3JvszKmfl for <40312@debbugs.gnu.org>; Mon, 30 Mar 2020 06:17:37 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brendan.scot; s=MBO0001; t=1585541855; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4rK/tBE5DcE60Fb9lM6MlNKsx74BQ2OOBx9GnWEo4OA=; b=f+tBTY/MJbzvZIEl+Nl8khoMsylixWVKSIlSm3yGUsfl2zzHUfbmck9nv24pSxhASDoHSG jY6BQlZWvVjXZawxCT0kXMUfPliq7HgRAhD/AKwH68GZM/woKVPT/Ldj8BAMcVZzHeaT6d ps4kiTo1eSG2VybjomnR2b2DdmgjzuKPck8V13xeweAHLbCZVtwcu3Z6UMhJwMf+EOdDTK R0QmjbdemdKwHANr7a5uzRzPJqrWWRY/j53d79Olh5JsvCyqNlfjjaDkWaVFJe1U3SHXDP FMCX1kTb/PDrx1yTUeM65cT1j1ySL9tKgikeWitKqZv23nrM5Zf2N1XTjUW1eQ== Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter02.heinlein-hosting.de (spamfilter02.heinlein-hosting.de [80.241.56.116]) (amavisd-new, port 10030) with ESMTP id uuAsvDmX8gB9 for <40312@debbugs.gnu.org>; Mon, 30 Mar 2020 06:17:34 +0200 (CEST) From: Brendan Tildesley To: 40312@debbugs.gnu.org Subject: [PATCH 3/3] gnu: Add piper. Date: Mon, 30 Mar 2020 15:16:51 +1100 Message-Id: <20200330041651.16348-3-mail@brendan.scot> In-Reply-To: <20200330041651.16348-1-mail@brendan.scot> References: <20200330041651.16348-1-mail@brendan.scot> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 40312 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) * gnu/packages/gnome (piper): New variable. --- gnu/packages/gnome.scm | 63 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index d44e9ea5e7..a98ffb2af5 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -183,6 +183,7 @@ #:use-module (guix build-system meson) #:use-module (guix build-system python) #:use-module (guix build-system trivial) + #:use-module (guix build python-build-system) #:use-module (guix download) #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:) @@ -9958,3 +9959,65 @@ your operating-system definition: (simple-service 'ratbagd dbus-root-service-type (list libratbag)) ") (license license:expat))) + +(define-public piper + (package + (name "piper") + (version "0.4") + (source + (origin + (method url-fetch) + (uri + (string-append "https://github.com/libratbag/piper/archive/" + version ".tar.gz")) + (sha256 + (base32 + "0a7vbgj5g5pgkr8h8sd2pkhdnxrqy36i51jq2zxnql28jd8bfbfn")))) + (build-system meson-build-system) + (native-inputs `(("pkg-config" ,pkg-config) + ("glib:bin" ,glib "bin") + ("gobject-introspection" ,gobject-introspection) + ("gettext" ,gettext-minimal) + ("python-flake8" ,python-flake8))) + (inputs `(("gtk:bin" ,gtk+ "bin") + ("gtk" ,gtk+) + ("adwaita-icon-theme" ,adwaita-icon-theme) + ("librsvg" ,librsvg) + ("python-pygobject" ,python-pygobject) + ("python-lxml" ,python-lxml) + ("python-evdev" ,python-evdev) + ("python-pycairo" ,python-pycairo))) + (arguments + `(#:imported-modules ((guix build python-build-system) + ,@%meson-build-system-modules) + #:modules (((guix build python-build-system) #:prefix python:) + (guix build meson-build-system) + (guix build utils)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'dont-update-gtk-icon-cache + (lambda _ + (substitute* "meson.build" + (("meson.add_install_script('meson_install.sh')") "")) + #t)) + ;; TODO: Switch to wrap-script when it is fixed + (add-after 'install 'wrap-python + (assoc-ref python:%standard-phases 'wrap)) + (add-after 'wrap-python 'wrap + (lambda* (#:key outputs #:allow-other-keys) + (wrap-program + (string-append (assoc-ref outputs "out" )"/bin/piper") + `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))) + #t))))) + (home-page "https://github.com/libratbag/piper/") + (synopsis "Configure bindings and LEDs on gaming mice") + (description "Piper is a GTK+ application for configuring gaming mice with +onboard configuration for key bindings via libratbag. Piper requires a +@command{ratbagd} daemon running with root privileges. It can be run manually +as root, but is preferably configured as a dbus service that can launch on +demand. This can be configured by enabling the following service, provided +there is a dbus-service present: + (simple-service 'ratbagd dbus-root-service-type (list libratbag)) + +") + (license license:gpl2))) -- 2.25.2 From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 12 01:27:31 2020 Received: (at 40312) by debbugs.gnu.org; 12 Apr 2020 05:27:31 +0000 Received: from localhost ([127.0.0.1]:57294 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jNV9O-0002ed-08 for submit@debbugs.gnu.org; Sun, 12 Apr 2020 01:27:31 -0400 Received: from mout-p-201.mailbox.org ([80.241.56.171]:60190) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jNV9L-0002eN-Dz for 40312@debbugs.gnu.org; Sun, 12 Apr 2020 01:27:20 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 490Kxr5kV1zQlHv for <40312@debbugs.gnu.org>; Sun, 12 Apr 2020 07:27:12 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brendan.scot; s=MBO0001; t=1586669230; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=YuogeLQ8JrVmeK4Cet9GOe9/adFtMXTIH4sSkrrLnJ0=; b=UJ4zER5XPvJcKn7fM3XbYzJLUcWwy0sPqAowDY77FVe2n0WiXHIkdH9taBi8s5d0XLEOVp Nvuwo9NAGQkW5pw7EhVRsitJrMneLPLaVd80M798wmTfSAGiOQfFARmDTUzl/n0DNOrfBF xChZTtZIQR0hOXV+LyBTwlBQmiwlqEm7f47RwlXdGq3TrRdv95wxv+eu5mIUMQVXTIh4EE KJCNDcE18f+7JBVaGSNwyzFf8spjrA6+ivZwEhZP+OWLNLraMmpqTDx/fsegacERba4fxq i6wzw4GyQRTHiqsRHH4oFY1bkaauPq6X2dScg+PcCc4lVLT+9qoyeOmQpH1sqg== Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter02.heinlein-hosting.de (spamfilter02.heinlein-hosting.de [80.241.56.116]) (amavisd-new, port 10030) with ESMTP id Qpfk45XRk2o5 for <40312@debbugs.gnu.org>; Sun, 12 Apr 2020 07:27:09 +0200 (CEST) Subject: Re: ([PATCH 0/3]: Add Piper and libratbag -- New patch set; minor fixes. To: 40312@debbugs.gnu.org References: <99b3cb1d-94d0-d3b3-a64b-873eb5edea36@brendan.scot> From: Brendan Tildesley Message-ID: Date: Sun, 12 Apr 2020 15:27:03 +1000 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------EC82DF40C58A6DB95A93636B" Content-Language: en-US X-Rspamd-Queue-Id: 92A941739 X-Rspamd-Score: -6.69 / 15.00 / 15.00 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 40312 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) This is a multi-part message in MIME format. --------------EC82DF40C58A6DB95A93636B Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit This patch set (all attached) corrects my sloppy use of texinfo format in the python-evdev patch, and uses git-fetch instead of github archive tarballs. I originally sent these patches in when the mailing list was down so it all got lost to civilization I think. If you looking at reviewing this but have no interest in Piper/libratbag, at least it would be good to add python-evdev, as there is at least one other user that wishes to use it. Thanks. --------------EC82DF40C58A6DB95A93636B Content-Type: text/x-patch; charset=UTF-8; name="0001-gnu-Add-python-evdev.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="0001-gnu-Add-python-evdev.patch" >From 69e46ff13c1dad0891b5402f967573ff48b2f318 Mon Sep 17 00:00:00 2001 From: Brendan Tildesley Date: Sat, 28 Mar 2020 17:15:02 +1100 Subject: [PATCH 1/3] gnu: Add python-evdev. * gnu/packages/linux.scm (python-evdev): New variable. --- gnu/packages/linux.scm | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 8fec3352f3..4dc788dc98 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -28,7 +28,7 @@ ;;; Copyright © 2017 nee ;;; Copyright © 2017 Dave Love ;;; Copyright © 2018 Pierre-Antoine Rouby -;;; Copyright © 2018 Brendan Tildesley +;;; Copyright © 2018, 2020 Brendan Tildesley ;;; Copyright © 2018 Manuel Graf ;;; Copyright © 2018 Pierre Langlois ;;; Copyright © 2018 Vasile Dumitrascu @@ -2922,6 +2922,46 @@ time.") (define-public eudev-with-hwdb (deprecated-package "eudev-with-hwdb" eudev)) +(define-public python-evdev + (package + (name "python-evdev") + (version "1.3.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "evdev" version)) + (sha256 + (base32 + "0kb3636yaw9l8xi8s184w0r0n9ic5dw3b8hx048jf9fpzss4kimi")))) + (build-system python-build-system) + (native-inputs + `(("kernel-headers" ,linux-libre-headers))) + (arguments + `(#:tests? #f ;; No rule for tests + #:phases + (modify-phases %standard-phases + (add-before 'build 'patch-patch + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "setup.py" + (("/usr/include/linux") + (string-append + (assoc-ref inputs "kernel-headers") "/include/linux"))) + #t))))) + (home-page + "https://github.com/gvalkov/python-evdev") + (synopsis + "Bindings to the Linux input handling subsystem") + (description + "Python-evdev provides bindings to the generic input event +interface in Linux. The @code{evdev} interface serves the purpose of +passing events generated in the kernel directly to userspace through character +devices that are typically located in @file{/dev/input/}. + +This package also comes with bindings to @code{uinput}, the userspace input +subsystem. @code{uinput} allows userspace programs to create and handle +input devices that can inject events directly into the input subsystem.") + (license license:bsd-3))) + (define-public lvm2 (package (name "lvm2") -- 2.26.0 --------------EC82DF40C58A6DB95A93636B Content-Type: text/x-patch; charset=UTF-8; name="0002-gnu-Add-libratbag.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="0002-gnu-Add-libratbag.patch" >From 12be532513d633cd66f171dcadf251bda995b985 Mon Sep 17 00:00:00 2001 From: Brendan Tildesley Date: Sat, 28 Mar 2020 19:08:50 +1100 Subject: [PATCH 2/3] gnu: Add libratbag. * gnu/packages/gnome.scm (libratbag): New variable. --- gnu/packages/gnome.scm | 69 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 68 insertions(+), 1 deletion(-) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index bc78910c64..b1b4383f72 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -27,7 +27,7 @@ ;;; Copyright © 2017, 2018 nee ;;; Copyright © 2017 Chris Marusich ;;; Copyright © 2017 Mohammed Sadiq -;;; Copyright © 2017 Brendan Tildesley +;;; Copyright © 2017, 2020 Brendan Tildesley ;;; Copyright © 2017, 2018 Rutger Helling ;;; Copyright © 2018 Jovany Leandro G.C ;;; Copyright © 2018 Vasile Dumitrascu @@ -159,10 +159,12 @@ #:use-module (gnu packages speech) #:use-module (gnu packages spice) #:use-module (gnu packages sqlite) + #:use-module (gnu packages swig) #:use-module (gnu packages ssh) #:use-module (gnu packages tex) #:use-module (gnu packages time) #:use-module (gnu packages tls) + #:use-module (gnu packages valgrind) #:use-module (gnu packages version-control) #:use-module (gnu packages video) #:use-module (gnu packages virtualization) @@ -9889,3 +9891,68 @@ to.") license:public-domain ;; snowball license:bsd-2)))) + +(define-public libratbag + (package + (name "libratbag") + (version "0.13") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/libratbag/libratbag.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "18y8mfr63d91278m1kcid0wvrxa1sgjs8na9af1ks2n28ssvciwq")))) + (build-system meson-build-system) + (native-inputs `(("pkg-config" ,pkg-config) + ("check" ,check) + ("swig" ,swig) + ("valgrind" ,valgrind))) + (inputs `(("glib" ,glib) + ("json-glib" ,json-glib) + ("libevdev" ,libevdev) + ("udev" ,eudev) + ("libunistring" ,libunistring) + ("python-pygobject" ,python-pygobject) + ("python-evdev" ,python-evdev) + ("libsystemd" ,elogind))) + (arguments + `(#:configure-flags + (list "-Dsystemd=false" + "-Dlogind-provider=elogind") + #:phases + (modify-phases %standard-phases + (add-after 'install 'wrap + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (site (string-append + "/lib/python" + ,(version-major+minor (package-version python)) + "/site-packages")) + (evdev (string-append + (assoc-ref inputs "python-evdev") site)) + (pygo (string-append + (assoc-ref inputs "python-pygobject") site)) + (python-wrap + `("PYTHONPATH" = (,evdev ,pygo)))) + (wrap-program (string-append out "/bin/" "ratbagctl") + python-wrap) + #t)))))) + (home-page "https://github.com/libratbag/libratbag") + (synopsis "DBus daemon and utility for configuring gaming mice") + (description "libratbag provides @command{ratbagd}, a DBus daemon to +configure input devices, mainly gaming mice. The daemon provides a generic +way to access the various features exposed by these mice and abstracts away +hardware-specific and kernel-specific quirks. There is also the +@command{ratbagctl} command line interface for configuring devices. + +libratbag currently supports devices from Logitech, Etekcity, GSkill, Roccat, +Steelseries. + +The ratbagd dbus service can be enabled by adding the following service to +your operating-system definition: +(simple-service 'ratbagd dbus-root-service-type (list libratbag)) +") + (license license:expat))) -- 2.26.0 --------------EC82DF40C58A6DB95A93636B Content-Type: text/x-patch; charset=UTF-8; name="0003-gnu-Add-piper.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0003-gnu-Add-piper.patch" >From f4395487a19f003450793b1274af3def611a43f2 Mon Sep 17 00:00:00 2001 From: Brendan Tildesley Date: Sat, 28 Mar 2020 19:14:45 +1100 Subject: [PATCH 3/3] gnu: Add piper. * gnu/packages/gnome (piper): New variable. --- gnu/packages/gnome.scm | 61 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index b1b4383f72..5d2144fceb 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -183,6 +183,7 @@ #:use-module (guix build-system meson) #:use-module (guix build-system python) #:use-module (guix build-system trivial) + #:use-module (guix build python-build-system) #:use-module (guix download) #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:) @@ -9956,3 +9957,63 @@ your operating-system definition: (simple-service 'ratbagd dbus-root-service-type (list libratbag)) ") (license license:expat))) + +(define-public piper + (package + (name "piper") + (version "0.4") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/libratbag/piper.git") + (commit version))) + (sha256 + (base32 + "17h06j8lxpbfygq8fzycl7lml4vv7r05bsyhh3gga2hp0zms4mvg")))) + (build-system meson-build-system) + (native-inputs `(("pkg-config" ,pkg-config) + ("glib:bin" ,glib "bin") + ("gobject-introspection" ,gobject-introspection) + ("gettext" ,gettext-minimal) + ("python-flake8" ,python-flake8))) + (inputs `(("gtk:bin" ,gtk+ "bin") + ("gtk" ,gtk+) + ("adwaita-icon-theme" ,adwaita-icon-theme) + ("librsvg" ,librsvg) + ("python-pygobject" ,python-pygobject) + ("python-lxml" ,python-lxml) + ("python-evdev" ,python-evdev) + ("python-pycairo" ,python-pycairo))) + (arguments + `(#:imported-modules ((guix build python-build-system) + ,@%meson-build-system-modules) + #:modules (((guix build python-build-system) #:prefix python:) + (guix build meson-build-system) + (guix build utils)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'dont-update-gtk-icon-cache + (lambda _ + (substitute* "meson.build" + (("meson.add_install_script('meson_install.sh')") "")) + #t)) + ;; TODO: Switch to wrap-script when it is fixed + (add-after 'install 'wrap-python + (assoc-ref python:%standard-phases 'wrap)) + (add-after 'wrap-python 'wrap + (lambda* (#:key outputs #:allow-other-keys) + (wrap-program + (string-append (assoc-ref outputs "out" )"/bin/piper") + `("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))) + #t))))) + (home-page "https://github.com/libratbag/piper/") + (synopsis "Configure bindings and LEDs on gaming mice") + (description "Piper is a GTK+ application for configuring gaming mice with +onboard configuration for key bindings via libratbag. Piper requires a +@command{ratbagd} daemon running with root privileges. It can be run manually +as root, but is preferably configured as a dbus service that can launch on +demand. This can be configured by enabling the following service, provided +there is a dbus-service present: + (simple-service 'ratbagd dbus-root-service-type (list libratbag))") + (license license:gpl2))) -- 2.26.0 --------------EC82DF40C58A6DB95A93636B-- From debbugs-submit-bounces@debbugs.gnu.org Wed Apr 22 19:03:09 2020 Received: (at 40312-done) by debbugs.gnu.org; 22 Apr 2020 23:03:09 +0000 Received: from localhost ([127.0.0.1]:53597 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jROOb-0002yu-2W for submit@debbugs.gnu.org; Wed, 22 Apr 2020 19:03:09 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:41935) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jROOY-0002yN-Vm for 40312-done@debbugs.gnu.org; Wed, 22 Apr 2020 19:03:07 -0400 X-Originating-IP: 185.131.40.67 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 04DAF20007; Wed, 22 Apr 2020 23:02:59 +0000 (UTC) From: Nicolas Goaziou To: Brendan Tildesley Subject: Re: [bug#40312] ([PATCH 0/3]: Add Piper and libratbag -- New patch set; minor fixes. References: <99b3cb1d-94d0-d3b3-a64b-873eb5edea36@brendan.scot> Date: Thu, 23 Apr 2020 01:02:58 +0200 In-Reply-To: (Brendan Tildesley's message of "Sun, 12 Apr 2020 15:27:03 +1000") Message-ID: <87ftcvktst.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 40312-done Cc: 40312-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello, Brendan Tildesley writes: > This patch set (all attached) corrects my sloppy use of texinfo format > in the python-evdev patch, and uses git-fetch instead of github > archive tarballs. > > I originally sent these patches in when the mailing list was down so > it all got lost to civilization I think. > > If you looking at reviewing this but have no interest in > Piper/libratbag, at least it would be good to add python-evdev, as > there is at least one other user that wishes to use it. All applied. Thank you. Regards, -- Nicolas Goaziou From unknown Wed Jun 18 23:05:57 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 21 May 2020 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator