summary refs log tree commit diff
path: root/pkgs/tools/misc/unclutter/default.nix
blob: 542530532de064c8d69ec32117a4ed829b03f1e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{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 = with stdenv.lib; {
    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 &
    '';
    maintainers = with maintainers; [ iElectric ];
    platforms = platforms.unix;
  };
}