summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2012-01-08 14:01:17 +0000
committerPeter Simons <simons@cryp.to>2012-01-08 14:01:17 +0000
commit2c7ac76079fb49049b9c51fd4755e129c233d210 (patch)
tree5fb1065613a8831905695de1412eb9d0251f4145 /pkgs/tools
parent47288a22242b0cd554efc45d446e67573ca308f7 (diff)
downloadnixpkgs-2c7ac76079fb49049b9c51fd4755e129c233d210.tar
nixpkgs-2c7ac76079fb49049b9c51fd4755e129c233d210.tar.gz
nixpkgs-2c7ac76079fb49049b9c51fd4755e129c233d210.tar.bz2
nixpkgs-2c7ac76079fb49049b9c51fd4755e129c233d210.tar.lz
nixpkgs-2c7ac76079fb49049b9c51fd4755e129c233d210.tar.xz
nixpkgs-2c7ac76079fb49049b9c51fd4755e129c233d210.tar.zst
nixpkgs-2c7ac76079fb49049b9c51fd4755e129c233d210.zip
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 &

svn path=/nixpkgs/trunk/; revision=31431
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/misc/unclutter/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/tools/misc/unclutter/default.nix b/pkgs/tools/misc/unclutter/default.nix
new file mode 100644
index 00000000000..8cf31ff7208
--- /dev/null
+++ b/pkgs/tools/misc/unclutter/default.nix
@@ -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 &
+    '';
+  };
+}