forked from mirrors/nixpkgs
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.
This commit is contained in:
parent
a05435acd1
commit
aecc760c05
26
pkgs/tools/games/joystickwake/default.nix
Normal file
26
pkgs/tools/games/joystickwake/default.nix
Normal file
|
@ -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;
|
||||
};
|
||||
}
|
|
@ -2887,6 +2887,8 @@ in
|
|||
|
||||
joycond = callPackage ../os-specific/linux/joycond { };
|
||||
|
||||
joystickwake = callPackage ../tools/games/joystickwake {};
|
||||
|
||||
jwt-cli = callPackage ../tools/security/jwt-cli {
|
||||
inherit (darwin.apple_sdk.frameworks) Security;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue