From patchwork Sat May 7 21:53:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Rene Saavedra X-Patchwork-Id: 39153 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 0AD2827BBEA; Sun, 8 May 2022 02:02:48 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 837D827BBE9 for ; Sun, 8 May 2022 02:02:47 +0100 (BST) Received: from localhost ([::1]:55030 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnVJu-0000OC-BF for patchwork@mira.cbaines.net; Sat, 07 May 2022 21:02:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53832) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnVJD-0000Np-Ji for guix-patches@gnu.org; Sat, 07 May 2022 21:02:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59265) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nnVJC-0007Nl-SE for guix-patches@gnu.org; Sat, 07 May 2022 21:02:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nnVJC-0002wQ-Ik for guix-patches@gnu.org; Sat, 07 May 2022 21:02:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55235] [PATCH] gnu: Add touchegg. Resent-From: Rene Saavedra Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 08 May 2022 01:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55235 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55235@debbugs.gnu.org Received: via spool by 55235-submit@debbugs.gnu.org id=B55235.165197167711241 (code B ref 55235); Sun, 08 May 2022 01:02:02 +0000 Received: (at 55235) by debbugs.gnu.org; 8 May 2022 01:01:17 +0000 Received: from localhost ([127.0.0.1]:53158 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnVIS-0002vE-TV for submit@debbugs.gnu.org; Sat, 07 May 2022 21:01:17 -0400 Received: from mail-4318.protonmail.ch ([185.70.43.18]:42197) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nnSNE-0006lD-EL for 55235@debbugs.gnu.org; Sat, 07 May 2022 17:54:02 -0400 Date: Sat, 07 May 2022 21:53:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail2; t=1651960433; bh=zg9GfpQezU4qIoAH4YAGvY+4B4/AsXeoP+xXIPKdEwY=; h=Date:To:From:Reply-To:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID; b=k9RvJEwVO4FY5JsP0cngEiyl+2r6mx5Wk9QWOivh4pfw1r1BFtb4kIFFSN/N+HIWB bxG67qlc056y951A55vviiCcZKK9f7NZOCSFoC9nd5HIZRIyZgZ2v4Ocmda4Bk6OWq YSgyBBF30AjALNM4QTc85mpyjCNhJh5u3kiMMRdpLZ6nt1bb8kd5a+rQ75lsTAHSc3 Vt1Oiu9PIiBC0a5D1LN68+7Nra8lk3nt/BzD+HT/oxbajvrRlhqrDOiLD2oux1oKtn jDIaU0rC+A5r5KeyYJe7RpWhd+kSe9TbuhO6Zv/0kZt47jMQbYeVPw80S0Iei0H4hd PJ1SRVQwBUD3A== Message-ID: In-Reply-To: <5a4692cb2ee05aba388724a634936a6a629da904.camel@telenet.be> References: <5a4692cb2ee05aba388724a634936a6a629da904.camel@telenet.be> Feedback-ID: 45511086:user:proton MIME-Version: 1.0 X-Mailman-Approved-At: Sat, 07 May 2022 21:01:15 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: Rene Saavedra X-ACL-Warn: , Rene Saavedra via Guix-patches X-Patchwork-Original-From: Rene Saavedra via Guix-patches via From: Rene Saavedra X-getmail-retrieved-from-mailbox: Patches hi Maxime, > > Doesn't look like a toy to me. moved to gnu/packages/linux.scm > > What does it need root for? touchegg --daemon requires to detect touchpad device. > Is it Linux-specific? Also, does it work in a pure environment (./pre- > inst-env guix shell --pure touchegg -- touchegg)? fixed synopsis. don't work in a pure environment, see error: --- rex@crash ~/dev/guix$ ./pre-inst-env guix shell --pure touchegg -- touchegg --daemon Touchégg v2.0.14. Starting Touchégg in daemon mode Starting daemon server... Generating D-Bus introspection data Creating D-Bus server Server started at address unix:abstract=touchegg A list of detected compatible devices will be displayed below: Warning: Error opening device /dev/input/event3 Warning: Error opening device /dev/input/event0 Warning: Error opening device /dev/input/event1 Warning: Error opening device /dev/input/event5 Warning: Error opening device /dev/input/event8 Warning: Error opening device /dev/input/event6 Warning: Error opening device /dev/input/event9 Warning: Error opening device /dev/input/event10 Warning: Error opening device /dev/input/event11 Warning: Error opening device /dev/input/event7 Warning: Error opening device /dev/input/event2 Warning: Error opening device /dev/input/event4 -- > > The exact library used seems like an implementation detail to me. description fixed. Cheers -- Rene From 81a71a1cad5bd86acfbb6751a92e3dfd0a579591 Mon Sep 17 00:00:00 2001 From: Rene Saavedra Date: Sat, 7 May 2022 16:39:20 -0500 Subject: [PATCH] gnu: Add touchegg. * gnu/packages/linux.scm (touchegg): New variable. --- gnu/packages/linux.scm | 49 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 9bb2314ebd..272fd23db0 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -61,6 +61,7 @@ ;;; Copyright © 2021 Solene Rapenne ;;; Copyright © 2021 Petr Hodina ;;; Copyright © 2022 Artyom V. Poptsov +;;; Copyright © 2022 Rene Saavedra ;;; ;;; This file is part of GNU Guix. @@ -110,6 +111,7 @@ (define-module (gnu packages linux) #:use-module (gnu packages gcc) #:use-module (gnu packages gettext) #:use-module (gnu packages glib) + #:use-module (gnu packages gnome) #:use-module (gnu packages gnupg) #:use-module (gnu packages golang) #:use-module (gnu packages gperf) @@ -9179,3 +9181,50 @@ (define-public libtree "This tool turns @command{ldd} into a tree and explains how shared libraries are found or why they cannot be located.") (license license:expat))) + +(define-public touchegg + (package + (name "touchegg") + (version "2.0.14") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/JoseExposito/touchegg") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0shvslz0c8nqx5f988z55qjc9xw0in9rb7b19r6vr1f7cdkqb6yr")))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f ; No tests exist + #:configure-flags + (list "-DUSE_SYSTEMD=OFF") ; No systemd + #:phases + (modify-phases %standard-phases + ;; gnome-shell launch touchegg daemon on startup, touchegg daemon + ;; requires root privileges to detect touchpad or touchscreen device. + (add-after 'unpack 'disable-autostart + (lambda _ + (substitute* "installation/touchegg.desktop" + (("Exec=touchegg") + "Exec=false"))))))) + (native-inputs + (list + pkg-config)) + (inputs + (list + cairo + gtk+ + libgudev + libinput + libxrandr + libxtst + pugixml)) + (home-page "https://github.com/JoseExposito/touchegg") + (synopsis "Multitouch gesture recognizer") + (description + "Touchégg is an application that runs in the background and transform the +gestures you make on your touchpad or touchscreen into visible actions in your +desktop.") + (license license:gpl3+))) -- 2.34.0