From 6a0945372f8e21d2355c7d8ff0b63cf88ec2fa93 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Wed, 8 Nov 2023 23:39:30 +0300 Subject: [PATCH] Rice kitty --- machines/enka/kitty/default.nix | 51 +++++++++++++++++++++++++- machines/enka/nushell/configuration.nu | 10 ++--- themes/gruvbox.nix | 5 ++- 3 files changed, 55 insertions(+), 11 deletions(-) diff --git a/machines/enka/kitty/default.nix b/machines/enka/kitty/default.nix index b4751c8..1304875 100644 --- a/machines/enka/kitty/default.nix +++ b/machines/enka/kitty/default.nix @@ -1,4 +1,4 @@ -{ pkgs, homeConfiguration, enabled, ... }: +{ pkgs, theme, homeConfiguration, enabled, ... }: homeConfiguration "nixos" { programs.kitty = enabled { @@ -12,8 +12,55 @@ homeConfiguration "nixos" { theme = "Gruvbox Dark"; settings = { + focus_follows_mouse = true; + mouse_hide_wait = 0; + scrollback_lines = 100000; - mouse_hide_wait = 0; + scrollback_pager = "bat --chop-long-lines"; + + cursor = "#" + theme.foreground; + cursor_theme_color = "#" + theme.background; + cursor_shape = "beam"; + + url_color = "#" + theme.low; + + strip_trailing_spaces = "always"; + + enable_audio_bell = false; + + active_border_color = "#" + theme.activeHighlight; + inactive_border_color = "#" + theme.inactiveHighlight; + window_border_width = "0pt"; + + background = "#" + theme.background; + foreground = "#" + theme.foreground; + + selection_background = "#" + theme.foreground; + selection_foreground = "#" + theme.background; + + tab_bar_edge = "top"; + + active_tab_background = "#" + theme.background; + active_tab_foreground = "#" + theme.foreground; + + inactive_tab_background = "#" + theme.backgroundLight; + inactive_tab_foreground = "#" + theme.foreground; + + color0 = "665C54"; + color2 = "98971A"; + color3 = "D79921"; + color4 = "458588"; + color5 = "B16286"; + color6 = "689D6A"; + color7 = "A89984"; + color8 = "7C6F64"; + color9 = "FB4934"; + color10 = "B8BB26"; + color11 = "FABD2F"; + color12 = "83A598"; + color13 = "D3869B"; + color14 = "8EC07C"; + color15 = "BDAE93"; }; }; } diff --git a/machines/enka/nushell/configuration.nu b/machines/enka/nushell/configuration.nu index 3944530..5eb9971 100644 --- a/machines/enka/nushell/configuration.nu +++ b/machines/enka/nushell/configuration.nu @@ -135,13 +135,9 @@ $env.config = { let path = $tokens | last ls $"($path)*" | each {|it| let choice = if ($path | str ends-with "/") { - $path | path join ($it.name | path dbasen - - heavyame) + $path | path join ($it.name | path basename) } else { - $path | path dirname | path join ($it.name | path dbasen - - heavyame) + $path | path dirname | path join ($it.name | path basename) } let choice = if ($it.type == "dir") and (not ($choice | str ends-with "/")) { @@ -172,7 +168,7 @@ $env.config = { cursor_shape: { emacs: line - vi_insert: blink_underscore + vi_insert: line vi_normal: block } diff --git a/themes/gruvbox.nix b/themes/gruvbox.nix index 0e69032..93fc29e 100644 --- a/themes/gruvbox.nix +++ b/themes/gruvbox.nix @@ -1,8 +1,9 @@ { transparency = "FF"; # OPAQUE - background = "1D2021"; - foreground = "DDC7A1"; + background = "1D2021"; + backgroundLight = "282828"; + foreground = "DDC7A1"; activeHighlight = "D79921"; inactiveHighlight = "928374";