nixpkgs/pkgs/tools/X11/xbanish/default.nix

43 lines
1.2 KiB
Nix
Raw Normal View History

2016-04-19 06:42:52 +00:00
{stdenv, fetchFromGitHub, libX11, libXi, libXt, libXfixes, libXext}:
stdenv.mkDerivation rec {
2019-05-29 07:55:35 +00:00
version = "1.6";
pname = "xbanish";
2016-04-19 06:42:52 +00:00
buildInputs = [
libX11 libXi libXt libXfixes libXext
];
src = fetchFromGitHub {
owner = "jcs";
2019-09-08 23:38:31 +00:00
repo = pname;
2019-05-29 07:55:35 +00:00
rev = "v${version}";
sha256 = "0vp8ja68hpmqkl61zyjar3czhmny1hbm74m8f393incfz1ymr3i8";
2016-04-19 06:42:52 +00:00
};
2017-11-14 00:03:55 +00:00
makeFlags=[ "PREFIX=$(out)" ];
2016-04-19 06:42:52 +00:00
preInstall = ''
2017-11-14 00:03:55 +00:00
mkdir -p $out/bin $out/man/man1
2016-04-19 06:42:52 +00:00
'';
meta = {
description = "Hides mouse pointer while not in use";
longDescription = ''
xbanish hides the mouse cursor when you start typing, and shows it again when
the mouse cursor moves or a mouse button is pressed. This is similar to
xterm's pointerMode setting, but xbanish works globally in the X11 session.
unclutter's -keystroke mode is supposed to do this, but it's broken[0]. I
looked into fixing it, but the unclutter source code is terrible, so I wrote
xbanish.
The name comes from ratpoison's "banish" command that sends the cursor to the
corner of the screen.
'';
license = stdenv.lib.licenses.bsd3;
maintainers = [stdenv.lib.maintainers.choochootrain];
platforms = stdenv.lib.platforms.linux;
};
}