Merge pull request #83687 from primeos/wshowkeys

wshowkeys: init at 2020-03-29
This commit is contained in:
Ryan Mulligan
2020-10-26 18:55:16 -07:00
committed by GitHub
4 changed files with 60 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.programs.wshowkeys;
in {
meta.maintainers = with maintainers; [ primeos ];
options = {
programs.wshowkeys = {
enable = mkEnableOption ''
wshowkeys (displays keypresses on screen on supported Wayland
compositors). It requires root permissions to read input events, but
these permissions are dropped after startup'';
};
};
config = mkIf cfg.enable {
security.wrappers.wshowkeys.source = "${pkgs.wshowkeys}/bin/wshowkeys";
};
}