1
0
Fork 0

add plasma-manager, add shortcuts and hotkeys

This commit is contained in:
Philipp 2025-02-05 19:18:52 +01:00
parent a83c37a638
commit 01f8435ba7
Signed by: Philipp
GPG key ID: 9EBD8439AFBAB750
10 changed files with 211 additions and 73 deletions

View file

@ -30,6 +30,7 @@ in
enable = mkBoolOpt false "Whether or not to enable kitty.";
settings = mkOpt attrs defaultSettings "Settings to apply to the profile.";
font = mkOpt attrs defaultFont "Customize default font settings.";
plasma.enable = mkBoolOpt false "Whether to enable plasma configs for kitty.";
};
config = mkIf cfg.enable {
@ -38,6 +39,15 @@ in
themeFile = "Dracula";
inherit (cfg) font settings;
};
programs.plasma = mkIf cfg.plasma.enable {
enable = true;
hotkeys.commands."launch-kitty" = {
name = "Launch kitty";
key = "Meta+Return";
command = "kitty";
};
};
};
}

View file

@ -0,0 +1,23 @@
{
config,
lib,
namespace,
...
}:
with lib;
with lib.${namespace};
let
cfg = config.${namespace}.cli-apps.lazygit;
in
{
options.${namespace}.cli-apps.lazygit = with types; {
enable = mkBoolOpt false "Whether or not to enable lazygit.";
};
config = mkIf cfg.enable {
programs.lazygit = {
enable = true;
};
};
}

View file

@ -0,0 +1,26 @@
{
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 kitty.";
};
config = mkIf cfg.enable {
programs.plasma = {
enable = true;
shortcuts.kwin = {
"Window Close" = [ "Meta+Shift+Q" "Alt+F4" ];
};
};
};
}