unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Rene Saavedra via Guix-patches via <guix-patches@gnu.org>
To: 55235@debbugs.gnu.org
Subject: [bug#55235] [PATCH] gnu: Add touchegg.
Date: Sat, 07 May 2022 21:53:44 +0000	[thread overview]
Message-ID: <XM9MMzn5dXqYw9ZTnFAHyAMPaXNLD9K_mFJMenpfkrClevP0ludOhw_At8zydjXSwU30V9ZnNkcw60jDwcHzGG-idCYHPtyjgJCrTbljsz0=@protonmail.com> (raw)
In-Reply-To: <5a4692cb2ee05aba388724a634936a6a629da904.camel@telenet.be>

[-- Attachment #1: Type: text/plain, Size: 1423 bytes --]

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-PATCH-gnu-Add-touchegg.patch --]
[-- Type: text/x-patch; name=0001-PATCH-gnu-Add-touchegg.patch, Size: 2841 bytes --]

From 81a71a1cad5bd86acfbb6751a92e3dfd0a579591 Mon Sep 17 00:00:00 2001
From: Rene Saavedra <nanuui@protonmail.com>
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 <solene@perso.pw>
 ;;; Copyright © 2021 Petr Hodina <phodina@protonmail.com>
 ;;; Copyright © 2022 Artyom V. Poptsov <poptsov.artyom@gmail.com>
+;;; Copyright © 2022 Rene Saavedra <nanuui@protonmail.com>
 
 ;;;
 ;;; 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


  reply	other threads:[~2022-05-08  1:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-03  1:01 [bug#55235] [PATCH] gnu: Add touchegg Rene Saavedra via Guix-patches via
2022-05-04 13:51 ` Maxime Devos
2022-05-07 21:53   ` Rene Saavedra via Guix-patches via [this message]
2022-05-08 10:58     ` Maxime Devos
2022-05-15 15:46       ` Rene Saavedra via Guix-patches via
2022-05-18 22:24         ` Rene Saavedra via Guix-patches via
2022-05-20 18:39           ` Rene Saavedra via Guix-patches via
2022-06-04 15:56             ` bug#55235: " Julien Lepiller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='XM9MMzn5dXqYw9ZTnFAHyAMPaXNLD9K_mFJMenpfkrClevP0ludOhw_At8zydjXSwU30V9ZnNkcw60jDwcHzGG-idCYHPtyjgJCrTbljsz0=@protonmail.com' \
    --to=guix-patches@gnu.org \
    --cc=55235@debbugs.gnu.org \
    --cc=nanuui@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).