kitty configuration

This commit is contained in:
cnst
2024-06-30 16:53:01 +02:00
parent 840b47e7a0
commit a8ab6cd3e7
4 changed files with 48 additions and 99 deletions

18
flake.lock generated
View File

@@ -48,11 +48,11 @@
]
},
"locked": {
"lastModified": 1719703194,
"narHash": "sha256-Nm8YkN6gN/vFQwk6xto1EkxWTJSc1dLt4/xpsJxzKbA=",
"lastModified": 1719750385,
"narHash": "sha256-AEXF+QxsnGmrwqURcH4KqcTXFOTRnfblKr6gxcaWg4A=",
"owner": "nix-community",
"repo": "flake-firefox-nightly",
"rev": "9483c07bc35c85a60a788de686de0bfca690375d",
"rev": "a6d3430728df1867fd50a10c832547b90e623f2e",
"type": "github"
},
"original": {
@@ -402,11 +402,11 @@
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1719144654,
"narHash": "sha256-3eKm5xwc2M4WJ1wQ4POID8jpDARWXEAMcuh1xDItJl8=",
"lastModified": 1719749459,
"narHash": "sha256-sAZRJNJ9FRUPvseuH21kmh9s+Q6AfQWPNxKVm534wgk=",
"owner": "nix-community",
"repo": "lib-aggregate",
"rev": "7f1a89b58b9d3ba655a381f8ab1806a8ccdfb03a",
"rev": "a15b020a1d0fc483386eb001ec6735b8a30bec81",
"type": "github"
},
"original": {
@@ -490,11 +490,11 @@
},
"nixpkgs-lib": {
"locked": {
"lastModified": 1719103869,
"narHash": "sha256-kbTUy+/lfjUrMfV7JkTJwxowsFhi9Tb3BdbiOcIGcsc=",
"lastModified": 1719708727,
"narHash": "sha256-XFNKtyirrGNdehpg7lMNm1skEcBApjqGhaHc/OI95HY=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
"rev": "f820613f886cd1aa4bcfd1dbaa6c83c8a3dcd863",
"rev": "1bba8a624b3b9d4f68db94fb63aaeb46039ce9e6",
"type": "github"
},
"original": {

View File

@@ -2,6 +2,41 @@
programs.kitty = {
enable = true;
theme = "Gruvbox Material Dark Medium";
font = "JetBrainsMono Nerd Font 11";
settings = {
enable_audio_bell = false;
open_url_with = "firefox-nightly";
font_family = "Rec Mono Linear";
bold_font = "auto";
italic_font = "auto";
bold_italic_font = "auto";
font_size = "11.0";
cursor_blink_interval = 0;
cursor_beam_thickness = 3;
copy_on_select = true;
background_opacity = "0.95";
background_blur = "32";
window_padding_width = 3;
tab_bar_min_tabs = 1;
tab_bar_edge = "top";
tab_bar_style = "separator";
tab_bar_margin_width = "0.0";
tab_bar_margin_height = "0.0 0.0";
active_tab_font_style = "bold";
tab_title_max_length = 30;
# colors
active_tab_foreground = "#32302f";
active_tab_background = "#8bba7f";
inactive_tab_foreground = "#665C54";
inactive_tab_background = "#6f8352";
tab_bar_background = "#32302f";
};
extraConfig = ''
kitty_mod ctrl
map kitty_mod+q close_tab
map ctrl+shift+c copy_to_clipboard
map ctrl+shift+v paste_from_clipboard
tab_separator " | "
tab_title_template "{fmt.fg.tab}{title[:30]}"
'';
};
}

View File

@@ -1,86 +0,0 @@
{
home.shellAliases = {
zj = "zellij";
};
programs.zellij = {
enable = true;
enableZshIntegration = true;
settings = {
# Make zellij UI more compact
ui = {
pane_frames = {
hide_session_name = true;
};
};
default_layout = "compact";
copy_command = "wl-copy";
on_force_close = "detach";
default_shell = "zsh";
default_mode = "normal";
theme = "gruvbox-dark";
themes = {
gruvbox-dark = {
fg = [
213
196
161
];
bg = [
40
40
40
];
black = [
60
56
54
];
red = [
204
36
29
];
green = [
152
151
26
];
yellow = [
215
153
33
];
blue = [
69
133
136
];
magenta = [
177
98
134
];
cyan = [
104
157
106
];
white = [
251
241
199
];
orange = [
214
93
14
];
};
};
};
};
}

View File

@@ -1,5 +1,4 @@
{ pkgs, ... }:
{
{pkgs, ...}: {
fonts.packages = with pkgs; [
noto-fonts
noto-fonts-cjk
@@ -7,6 +6,7 @@
liberation_ttf
fira-code-symbols
font-awesome
recursive
jetbrains-mono
(nerdfonts.override {
fonts = [