a4fd2de975
GitOrigin-RevId: 34ad166a830d3ac1541dcce571c52231f2f0865a
22 lines
538 B
Nix
22 lines
538 B
Nix
{ 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";
|
|
};
|
|
}
|