Skip to content

Commit

Permalink
🔧 zellij config
Browse files Browse the repository at this point in the history
  • Loading branch information
shelken committed Oct 24, 2024
1 parent 42d7e56 commit 9b641fe
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 13 deletions.
20 changes: 10 additions & 10 deletions home/apps/kitty/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@
hash = "sha256-TLltUcfJpY+3rwvHYgtN4zBpbBnLBYyzDu90UMnxwoc=";
};
in {
programs.kitty = {
enable = false; # 用 homebrew 安装
theme = theme;
shellIntegration.mode = shell_integration;
extraConfig = builtins.readFile ./kitty.conf;
environment = {
# not use `xterm-kitty`
# "TERM" = "xterm-256color";
};
};
# programs.kitty = {
# enable = false; # 用 homebrew 安装
# theme = theme;
# shellIntegration.mode = shell_integration;
# extraConfig = builtins.readFile ./kitty.conf;
# environment = {
# # not use `xterm-kitty`
# # "TERM" = "xterm-256color";
# };
# };

xdg.configFile."kitty/kitty.conf" = {
text = concatStrings [
Expand Down
11 changes: 11 additions & 0 deletions home/apps/zellij/config.kdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// theme "catppuccin-macchiato"

session_serialization true

keybinds {
normal {
unbind "Ctrl q" "Ctrl s" // for vim
bind "Ctrl f" { SwitchToMode "Scroll"; }
bind "Ctrl x" { Quit; }
}
}
20 changes: 17 additions & 3 deletions home/apps/zellij/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,25 @@
...
}: let
theme = "catppuccin-${lib.strings.toLower myvars.catppuccin_flavor}";
origin_file = builtins.readFile ./config.kdl;
inherit (lib) concatStrings;
in {
programs.zellij = {
enable = true;
settings = {
theme = theme;
};
# settings = {
# theme = theme;
# };
enableBashIntegration = false;
enableZshIntegration = false;
};

xdg.configFile."zellij/config.kdl" = {
text = concatStrings [
''
// 主题配色
theme "${theme}"
''
origin_file
];
};
}

0 comments on commit 9b641fe

Please sign in to comment.