From a8ab6cd3e779517e8adcebb674f33d21d94f36c2 Mon Sep 17 00:00:00 2001 From: cnst Date: Sun, 30 Jun 2024 16:53:01 +0200 Subject: [PATCH] kitty configuration --- flake.lock | 18 +++---- home/extra/kitty/default.nix | 39 ++++++++++++++- home/extra/zellij/default.nixbak | 86 -------------------------------- hosts/core/fonts.nix | 4 +- 4 files changed, 48 insertions(+), 99 deletions(-) delete mode 100644 home/extra/zellij/default.nixbak diff --git a/flake.lock b/flake.lock index b6982c7a..c1d72e52 100644 --- a/flake.lock +++ b/flake.lock @@ -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": { diff --git a/home/extra/kitty/default.nix b/home/extra/kitty/default.nix index 4811f906..cd1c9b67 100644 --- a/home/extra/kitty/default.nix +++ b/home/extra/kitty/default.nix @@ -1,7 +1,42 @@ { programs.kitty = { enable = true; - theme = "GruvboxMaterialDarkMedium"; - font = "JetBrainsMono Nerd Font 11"; + theme = "Gruvbox Material Dark Medium"; + 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]}" + ''; }; } diff --git a/home/extra/zellij/default.nixbak b/home/extra/zellij/default.nixbak deleted file mode 100644 index 25e2c09b..00000000 --- a/home/extra/zellij/default.nixbak +++ /dev/null @@ -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 - ]; - }; - }; - }; - }; -} diff --git a/hosts/core/fonts.nix b/hosts/core/fonts.nix index 5a05c84b..5192410a 100644 --- a/hosts/core/fonts.nix +++ b/hosts/core/fonts.nix @@ -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 = [