all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alex Kost <alezost@gmail.com>
To: guix-devel@gnu.org
Subject: [PATCH] gnu: xorg: Add unclutter.
Date: Sun, 24 Aug 2014 10:36:35 +0400	[thread overview]
Message-ID: <87r406o0lo.fsf@gmail.com> (raw)

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

A tiny program for hiding mouse cursor (I use it all the time :)).

I think “xorg.scm” is a proper place for it or should it be put in a
separate file?


[-- Attachment #2: 0001-gnu-xorg-Add-unclutter.patch --]
[-- Type: text/x-diff, Size: 2981 bytes --]

From 6b900258d2b17ddf6b99def0f41b7bedf0d069af Mon Sep 17 00:00:00 2001
From: Alex Kost <alezost@gmail.com>
Date: Sun, 24 Aug 2014 10:30:05 +0400
Subject: [PATCH] gnu: xorg: Add unclutter.

* gnu/packages/xorg.scm (unclutter): New variable.
---
 gnu/packages/xorg.scm | 47 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)

diff --git a/gnu/packages/xorg.scm b/gnu/packages/xorg.scm
index ce3c4ec..9f8cdd0 100644
--- a/gnu/packages/xorg.scm
+++ b/gnu/packages/xorg.scm
@@ -2,6 +2,7 @@
 ;;; Copyright © 2013, 2014 Andreas Enge <andreas@enge.fr>
 ;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
 ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
+;;; Copyright © 2014 Alex Kost <alezost@gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -76,6 +77,52 @@ following the mouse.")
     (license license:x11)))
 
 
+(define-public unclutter
+  (package
+   (name "unclutter")
+   (version "8")
+   (source (origin
+            (method url-fetch)
+            (uri (string-append
+                  "http://ftp.x.org/contrib/utilities/unclutter-"
+                  version ".tar.Z"))
+            (sha256
+             (base32
+              "0ahrr5z6wxqqfyihm112hnq0859zlxisrb3y5232zav58j6sfmdq"))))
+   (build-system gnu-build-system)
+   (arguments
+    '(#:tests? #f  ; no check target
+      #:phases (alist-delete
+                'configure
+                (alist-replace
+                 'install
+                 (lambda* (#:key inputs outputs #:allow-other-keys)
+                   (let* ((out  (assoc-ref outputs "out"))
+                          (bin  (string-append out "/bin"))
+                          (man1 (string-append out "/share/man/man1")))
+                     (mkdir-p bin)
+                     (mkdir-p man1)
+                     (zero?
+                      (system* "make" "install" "install.man"
+                               (string-append "BINDIR=" bin)
+                               (string-append "MANDIR=" man1)))))
+                 %standard-phases))))
+   (inputs `(("libx11" ,libx11)))
+   (home-page "http://ftp.x.org/contrib/utilities/")
+   (synopsis "Hide idle mouse cursor")
+   (description
+    "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, ie 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:public-domain)))
+
+
 (define-public pixman
   (package
     (name "pixman")
-- 
2.0.3


             reply	other threads:[~2014-08-24  6:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-24  6:36 Alex Kost [this message]
2014-08-24 10:39 ` [PATCH] gnu: xorg: Add unclutter Andreas Enge
2014-08-24 13:00   ` Alex Kost
2014-08-25  7:06     ` Alex Kost
2014-08-25  7:19     ` Andreas Enge
2014-08-25 12:19       ` Alex Kost
2014-08-25 12:27         ` Andreas Enge
2014-08-25 14:41       ` Eric Bavier
2014-08-25 18:36         ` Ludovic Courtès

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

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

  git send-email \
    --in-reply-to=87r406o0lo.fsf@gmail.com \
    --to=alezost@gmail.com \
    --cc=guix-devel@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.