2022-06-10 17:41:53 +00:00
|
|
|
{ pkgs, config, lib, ... }:
|
|
|
|
let
|
|
|
|
cfg = config.nki.programs.kitty;
|
|
|
|
cmd = "cmd";
|
|
|
|
in
|
|
|
|
with lib; {
|
|
|
|
programs.kitty = mkIf (cfg.enable && pkgs.stdenv.isDarwin) {
|
|
|
|
|
|
|
|
# Darwin-specific setup
|
|
|
|
darwinLaunchOptions = [
|
|
|
|
"--single-instance"
|
|
|
|
"--start-as=fullscreen"
|
|
|
|
];
|
|
|
|
|
|
|
|
# Tabs and layouts keybindings
|
|
|
|
keybindings = {
|
|
|
|
# Backslash
|
|
|
|
"0x5d" = "send_text all \\u005c";
|
2022-10-17 08:20:10 +00:00
|
|
|
};
|
2022-06-10 17:41:53 +00:00
|
|
|
|
2022-06-11 15:59:56 +00:00
|
|
|
settings = {
|
2022-06-10 17:41:53 +00:00
|
|
|
# MacOS specific
|
2022-06-11 15:59:56 +00:00
|
|
|
macos_option_as_alt = "left";
|
|
|
|
};
|
2022-06-10 17:41:53 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|