1
0
Fork 0
nix-config/modules/home/desktop/shortcuts/default.nix
Philipp 39fb8c64dc
add chatterino, plasma-config, kitty, runelite, eza
fix formatting, fix btrfs being enabled by default update flake
2025-02-08 23:19:59 +01:00

29 lines
469 B
Nix

{
config,
lib,
namespace,
...
}:
with lib;
with lib.${namespace};
let
cfg = config.${namespace}.desktop.hotkeys;
in
{
options.${namespace}.desktop.hotkeys = with types; {
enable = mkBoolOpt false "Whether or not to enable custom shortcuts.";
};
config = mkIf cfg.enable {
programs.plasma = {
enable = true;
shortcuts.kwin = {
"Window Close" = [
"Meta+Shift+Q"
"Alt+F4"
];
};
};
};
}