summary refs log tree commit diff
path: root/pkgs/tools/games/joystickwake
diff options
context:
space:
mode:
authorFilippo Berto <berto.f@protonmail.com>2021-06-23 14:19:30 +0200
committerFilippo Berto <berto.f@protonmail.com>2021-06-23 14:29:53 +0200
commitaecc760c0515ab104d19cc535e3bc957f9d40e60 (patch)
tree7f742c044fefa4a71d3a0e130c6b4aee5a1e4f25 /pkgs/tools/games/joystickwake
parenta05435acd1b9e5604eacd8c841e7cf825b7f4503 (diff)
downloadnixpkgs-aecc760c0515ab104d19cc535e3bc957f9d40e60.tar
nixpkgs-aecc760c0515ab104d19cc535e3bc957f9d40e60.tar.gz
nixpkgs-aecc760c0515ab104d19cc535e3bc957f9d40e60.tar.bz2
nixpkgs-aecc760c0515ab104d19cc535e3bc957f9d40e60.tar.lz
nixpkgs-aecc760c0515ab104d19cc535e3bc957f9d40e60.tar.xz
nixpkgs-aecc760c0515ab104d19cc535e3bc957f9d40e60.tar.zst
nixpkgs-aecc760c0515ab104d19cc535e3bc957f9d40e60.zip
joystickwake: init at 0.2.4
Add package for [joystickwake](https://github.com/foresto/joystickwake), an utility for disabling screensavers and auto-lock while any input is received from a gamepad. This solves the annoying issue of auto-lock locking the session while playing games.
Diffstat (limited to 'pkgs/tools/games/joystickwake')
-rw-r--r--pkgs/tools/games/joystickwake/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/tools/games/joystickwake/default.nix b/pkgs/tools/games/joystickwake/default.nix
new file mode 100644
index 00000000000..01800aff849
--- /dev/null
+++ b/pkgs/tools/games/joystickwake/default.nix
@@ -0,0 +1,26 @@
+{ lib, python3, fetchFromGitHub }:
+python3.pkgs.buildPythonApplication rec {
+  pname = "joystickwake";
+  version = "0.2.4";
+
+  src = fetchFromGitHub {
+    owner = "foresto";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "0j8xwfmzzmc9s88zvzc3lv67821r6x28vy6vli3srvx859wprppd";
+  };
+
+  propagatedBuildInputs = with python3.pkgs; [ pyudev xlib ];
+
+  meta = with lib; {
+    description = "A joystick-aware screen waker";
+    longDescription = ''
+      Linux gamers often find themselves unexpectedly staring at a blank screen, because their display server fails to recognize game controllers as input devices, allowing the screen blanker to activate during gameplay.
+      This program works around the problem by temporarily disabling screen blankers when joystick activity is detected.
+    '';
+    homepage = "https://github.com/foresto/joystickwake";
+    maintainers = with maintainers; [ bertof ];
+    license = licenses.mit;
+    platforms = platforms.linux;
+  };
+}