1 {lib, stdenv, fetchFromGitHub, libX11, libXi, libXt, libXfixes, libXext}:
3 stdenv.mkDerivation rec {
8 libX11 libXi libXt libXfixes libXext
11 src = fetchFromGitHub {
15 sha256 = "sha256-jwCoJ2shFGuJHhmXmlw/paFpMl5ARD6e5zDnDZHlsoo=";
18 makeFlags=[ "PREFIX=$(out)" ];
21 mkdir -p $out/bin $out/man/man1
25 description = "Hides mouse pointer while not in use";
27 xbanish hides the mouse cursor when you start typing, and shows it again when
28 the mouse cursor moves or a mouse button is pressed. This is similar to
29 xterm's pointerMode setting, but xbanish works globally in the X11 session.
31 unclutter's -keystroke mode is supposed to do this, but it's broken[0]. I
32 looked into fixing it, but the unclutter source code is terrible, so I wrote
35 The name comes from ratpoison's "banish" command that sends the cursor to the
38 license = lib.licenses.bsd3;
39 maintainers = [lib.maintainers.choochootrain];
40 platforms = lib.platforms.linux;