From patchwork Mon Jul 19 22:42:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: iKaSeRo X-Patchwork-Id: 31513 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 6753927BC78; Tue, 20 Jul 2021 00:05:42 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id C16DB27BC6B for ; Tue, 20 Jul 2021 00:05:41 +0100 (BST) Received: from localhost ([::1]:39260 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m5cKS-0002t9-Pd for patchwork@mira.cbaines.net; Mon, 19 Jul 2021 19:05:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44092) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5cAB-0001Zh-5x for guix-patches@gnu.org; Mon, 19 Jul 2021 18:55:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49033) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m5cAA-0001zK-Iq for guix-patches@gnu.org; Mon, 19 Jul 2021 18:55:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m5cAA-0003xf-HO for guix-patches@gnu.org; Mon, 19 Jul 2021 18:55:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49652] [PATCH] gnu: Add unclutter-xfixes Resent-From: iKaSeRo Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 19 Jul 2021 22:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49652 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49652@debbugs.gnu.org Cc: iKaSeRo X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162673525815168 (code B ref -1); Mon, 19 Jul 2021 22:55:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Jul 2021 22:54:18 +0000 Received: from localhost ([127.0.0.1]:60579 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5c9R-0003wa-E0 for submit@debbugs.gnu.org; Mon, 19 Jul 2021 18:54:18 -0400 Received: from lists.gnu.org ([209.51.188.17]:54602) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5byV-0003gL-82 for submit@debbugs.gnu.org; Mon, 19 Jul 2021 18:43:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42682) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5byU-0008SS-Tn for guix-patches@gnu.org; Mon, 19 Jul 2021 18:42:58 -0400 Received: from ikasero.com ([2001:19f0:6c01:218e:5400:3ff:fe23:b75]:49478 helo=mail.ikasero.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5byR-0002aF-UE for guix-patches@gnu.org; Mon, 19 Jul 2021 18:42:58 -0400 Received: from localhost.localdomain (unknown [IPv6:2001:16a2:436d:f000:d65d:64ff:fed7:6da]) by mail.ikasero.com (Postfix) with ESMTPSA id 6C1957D43A; Mon, 19 Jul 2021 22:42:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ikasero.com; s=mail; t=1626734570; bh=Q2Ae8T6E4FXfPz/RHCHGha4NI59xOGkAaY3Wx8CiTjA=; h=From:To:Cc:Subject:Date:From; b=BqcnzM8EwaYLBN4ZxCo9karhzRvBM0RCqa1auGtr/rb+hTGj00uOhTGzIhxM907j8 cvHyqCvMzUyYs+H4EQTbtn4DaTT+Oix/Lduu6Pp4X3nBq0N0Qm2lzkDVc/AXQkRLk/ cEyw8HIJNypd0uSd5/7H8nXdEFwO0svUT/QPst7c/AiRxtpU/4NpsHhbkD9cQBtY/X TmVzYo1tbsFQ5PwjHkuKS7ZK63cyKDWtEkOhLP1BbSy5wufV+3GiWLvBEUu/inq3iX D6Dadic2DT685xUu+Ss5Q5ShG+LT3pV6daDqWlqw5mm0pyh/d23XCCa7g+OeSvVzAF OY0ssrtQoKAHw== From: iKaSeRo Date: Tue, 20 Jul 2021 01:42:18 +0300 Message-Id: <20210719224218.5320-1-ahmed@ikasero.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2001:19f0:6c01:218e:5400:3ff:fe23:b75; envelope-from=ahmed@ikasero.com; helo=mail.ikasero.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 19 Jul 2021 18:54:16 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Mon, 19 Jul 2021 19:05:33 -0400 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/xdisorg.scm (unclutter-xfixes): New variable. --- gnu/packages/xdisorg.scm | 50 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/gnu/packages/xdisorg.scm b/gnu/packages/xdisorg.scm index 22f29c93be..5dd1d73472 100644 --- a/gnu/packages/xdisorg.scm +++ b/gnu/packages/xdisorg.scm @@ -49,6 +49,7 @@ ;;; Copyright © 2021 Paul A. Patience ;;; Copyright © 2021 Niklas Eklund ;;; Copyright © 2021 Nikita Domnitskii +;;; Copyright © 2021 ikasero ;;; ;;; This file is part of GNU Guix. ;;; @@ -100,6 +101,7 @@ #:use-module (gnu packages haskell-xyz) #:use-module (gnu packages icu4c) #:use-module (gnu packages image) + #:use-module (gnu packages libevent) #:use-module (gnu packages linux) #:use-module (gnu packages m4) #:use-module (gnu packages man) @@ -907,6 +909,54 @@ xedit, for example. The human factors crowd would agree it should make things less distracting.") (license license:public-domain))) +(define-public unclutter-xfixes + (package + (name "unclutter-xfixes") + (version "1.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Airblader/unclutter-xfixes") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "148m4wx8v57s3l2wb69y9imb00y8ca2li27hsxibwnl1wrkb7z4b")))) + (build-system gnu-build-system) + (arguments '(#:tests? #f + #:make-flags + (list (string-append "PREFIX=" (assoc-ref %outputs "out"))) + #:phases + (modify-phases %standard-phases + (delete 'configure)))) + (inputs + `(("libx11" ,libx11) + ("libev" ,libev) + ("libxfixes" ,libxfixes) + ("libxi" ,libxi))) + (native-inputs + `(("asciidoc" ,asciidoc) + ("pkg-config" ,pkg-config))) + (home-page "https://github.com/Airblader/unclutter-xfixes") + (synopsis "Hide idle mouse cursor") + (description + "unclutter-xfixes is a rewrite of the popular tool unclutter, but +using the x11-xfixes extension. This means that this rewrite doesn't +use fake windows or pointer grabbing and hence causes less problems +with window managers and/or applications. + +Unclutter is a program which runs permanently in the background of an +X11 session. It checks on the X11 pointer (cursor) position every few +seconds, and when it finds it has not moved (and no buttons are pressed +on the mouse, and the cursor is not in the root window) it creates a +small sub-window as a child of the window the cursor is in. The new +window installs a cursor of size 1x1 but a mask of all 0, i.e. an +invisible cursor. This allows you to see all the text in an xterm or +xedit, for example. The human factors crowd would agree it should make +things less distracting.") + (license license:expat))) + (define-public xautomation (package (name "xautomation")