nix-home/home/modules/programs/my-kitty/darwin.nix

28 lines
493 B
Nix
Raw Normal View History

{ 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";
};
settings = {
# MacOS specific
macos_option_as_alt = "left";
};
};
}