From 5dda5affec0b8a72283157de1ee8d29c93d8ad94 Mon Sep 17 00:00:00 2001 From: alejandro-angulo Date: Mon, 19 Aug 2024 21:13:47 -0700 Subject: [PATCH] Added font resize keybindings --- modules/home/programs/kitty/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/home/programs/kitty/default.nix b/modules/home/programs/kitty/default.nix index 455b6c6..df7c393 100644 --- a/modules/home/programs/kitty/default.nix +++ b/modules/home/programs/kitty/default.nix @@ -29,6 +29,18 @@ in { settings = { background_opacity = "0.95"; }; + keybindings = lib.mkMerge [ + (lib.mkIf pkgs.stdenv.hostPlatform.isDarwin { + "cmd+=" = "change_font_size current +2.0"; + "cmd+minus" = "change_font_size current -2.0"; + "cmd+0" = "change_font_size current 0"; + }) + (lib.mkIf pkgs.stdenv.hostPlatform.isLinux { + "ctrl+=" = "change_font_size current +2.0"; + "ctrl+minus" = "change_font_size current -2.0"; + "ctrl+0" = "change_font_size current 0"; + }) + ]; }; }; }