use home-manager module to configure kitty, enable working directory in window title

This commit is contained in:
Daniel Olsen 2025-02-21 01:43:44 +01:00
parent cdc335e842
commit 67ca7276aa

View File

@ -3,29 +3,23 @@
config = lib.mkIf config.profiles.xsession.enable {
home.file.kitty = {
target = ".config/kitty/kitty.conf";
text = ''
#term xterm-256color
font_family MesloLGS NF
font_size 12.0
background_opacity 0.7
programs.kitty = {
enable = true;
font.name = "MesloLGS NF";
font.size = 12;
keybindings = {
"ctrl+shift+c" = "copy_to_clipboard";
"ctrl+shift+v" = "paste_from_clipboard";
clear_all_shortcuts yes
map ctrl+shift+c copy_to_clipboard
map ctrl+shift+v paste_from_clipboard
map ctrl+plus change_font_size all +2.0
map ctrl+shift+plus change_font_size all -2.0
'';
"ctrl+plus" = "change_font_size all +2.0";
"ctrl+shift+plus" = "change_font_size all -2.0";
};
settings = {
"background_opacity" = 0.7;
};
};
home.packages = [
pkgs.kitty
pkgs.ncurses.dev
];
};