Author: simons
Date: Sun Jan  8 14:01:17 2012
New Revision: 31431
URL: https://nixos.org/websvn/nix/?rev=31431&sc=1

Log:
unclutter: X cursor management tool

Unclutter hides your X mouse cursor when you do not need it, to prevent
it from getting in the way. You have only to move the mouse to restore
the mouse cursor. Unclutter is very usefull in tiling wm's where you do
not need the mouse often.

Just run it from your .bash_profile like that:

        unclutter -idle 1 &

Added:
   nixpkgs/trunk/pkgs/tools/misc/unclutter/
   nixpkgs/trunk/pkgs/tools/misc/unclutter/default.nix
Modified:
   nixpkgs/trunk/pkgs/top-level/all-packages.nix

Added: nixpkgs/trunk/pkgs/tools/misc/unclutter/default.nix
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/tools/misc/unclutter/default.nix Sun Jan  8 14:01:17 
2012        (r31431)
@@ -0,0 +1,32 @@
+{stdenv, fetchurl, x11}:
+
+stdenv.mkDerivation {
+  name = "unclutter-8";
+  src = fetchurl {
+    url = http://www.ibiblio.org/pub/X11/contrib/utilities/unclutter-8.tar.gz;
+    sha256 = 
"33a78949a7dedf2e8669ae7b5b2c72067896497820292c96afaa60bb71d1f2a6";
+  };
+
+  buildInputs = [x11];
+
+  installPhase = ''
+    mkdir -pv "$out/bin"
+    mkdir -pv "$out/share/man/man1"
+    make DESTDIR="$out" BINDIR="$out/bin" PREFIX="" install
+    make DESTDIR="$out" MANPATH="$out/share/man" PREFIX="" install.man
+  '';
+
+  meta = {
+    description = "Hides mouse pointer while not in use.";
+    longDescription = ''
+      Unclutter hides your X mouse cursor when you do not need it, to prevent
+      it from getting in the way. You have only to move the mouse to restore
+      the mouse cursor. Unclutter is very usefull in tiling wm's where you do
+      not need the mouse often.
+
+      Just run it from your .bash_profile like that:
+
+          unclutter -idle 1 &
+    '';
+  };
+}

Modified: nixpkgs/trunk/pkgs/top-level/all-packages.nix
==============================================================================
--- nixpkgs/trunk/pkgs/top-level/all-packages.nix       Sat Jan  7 22:43:23 
2012        (r31430)
+++ nixpkgs/trunk/pkgs/top-level/all-packages.nix       Sun Jan  8 14:01:17 
2012        (r31431)
@@ -1506,6 +1506,8 @@
 
   ttmkfdir = callPackage ../tools/misc/ttmkfdir { };
 
+  unclutter = callPackage ../tools/misc/unclutter { };
+
   unbound = callPackage ../tools/networking/unbound { };
 
   units = callPackage ../tools/misc/units { };
_______________________________________________
nix-commits mailing list
nix-comm...@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to