kitty: open new tab in cwd

This commit is contained in:
Paul-Henri Froidmont 2024-07-16 04:16:33 +02:00
parent c63062d2ae
commit b9bd906e65
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE

View file

@ -1,11 +1,13 @@
{ config, lib, pkgs, ... }: { config, lib, ... }:
with lib; let
with lib.my; cfg = config.modules.desktop.terminal;
let cfg = config.modules.desktop.terminal; in
in { {
options.modules.desktop.terminal = { enable = mkBoolOpt false; }; options.modules.desktop.terminal = {
config = mkIf cfg.enable { enable = lib.my.mkBoolOpt false;
};
config = lib.mkIf cfg.enable {
home-manager.users.${config.user.name} = { home-manager.users.${config.user.name} = {
programs.kitty = { programs.kitty = {
enable = true; enable = true;
@ -15,8 +17,7 @@ in {
enable_audio_bell = false; enable_audio_bell = false;
font_family = "Meslo LG S"; font_family = "Meslo LG S";
font_size = 10; font_size = 10;
symbol_map = symbol_map = "U+e000-U+e00a,U+ea60-U+ebeb,U+e0a0-U+e0c8,U+e0ca,U+e0cc-U+e0d4,U+e200-U+e2a9,U+e300-U+e3e3,U+e5fa-U+e6b1,U+e700-U+e7c5,U+f000-U+f2e0,U+f300-U+f372,U+f400-U+f532,U+f0001-U+f1af0 Symbols Nerd Font Mono";
"U+e000-U+e00a,U+ea60-U+ebeb,U+e0a0-U+e0c8,U+e0ca,U+e0cc-U+e0d4,U+e200-U+e2a9,U+e300-U+e3e3,U+e5fa-U+e6b1,U+e700-U+e7c5,U+f000-U+f2e0,U+f300-U+f372,U+f400-U+f532,U+f0001-U+f1af0 Symbols Nerd Font Mono";
}; };
keybindings = { keybindings = {
"ctrl+up" = "change_font_size all +2.0"; "ctrl+up" = "change_font_size all +2.0";
@ -25,6 +26,7 @@ in {
"shift+page_down" = "scroll_page_down"; "shift+page_down" = "scroll_page_down";
"ctrl+shift+comma" = "scroll_to_prompt -1"; "ctrl+shift+comma" = "scroll_to_prompt -1";
"ctrl+shift+semicolon" = "scroll_to_prompt 1"; "ctrl+shift+semicolon" = "scroll_to_prompt 1";
"ctrl+shift+t" = "new_tab_with_cwd";
}; };
theme = "Gruvbox Dark"; theme = "Gruvbox Dark";
}; };