diff --git a/flake.lock b/flake.lock index 2513262a..2067e040 100644 --- a/flake.lock +++ b/flake.lock @@ -48,7 +48,9 @@ }, "blender-bin": { "inputs": { - "nixpkgs": "nixpkgs" + "nixpkgs": [ + "nixpkgs" + ] }, "locked": { "dir": "blender", @@ -66,6 +68,26 @@ "type": "github" } }, + "catppuccin": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1752227483, + "narHash": "sha256-eetITGJfURryoHY5gfuE9/4sEV9aSgzhPxgsQgofNa8=", + "owner": "catppuccin", + "repo": "nix", + "rev": "5f431aac1a4038c385e6de2d2384d943e4802d61", + "type": "github" + }, + "original": { + "owner": "catppuccin", + "repo": "nix", + "type": "github" + } + }, "crane": { "locked": { "lastModified": 1731098351, @@ -293,7 +315,7 @@ "inputs": { "flake-compat": "flake-compat", "flake-utils": "flake-utils", - "nixpkgs": "nixpkgs_2", + "nixpkgs": "nixpkgs", "zig": "zig", "zon2nix": "zon2nix" }, @@ -508,7 +530,9 @@ "nix-gaming": { "inputs": { "flake-parts": "flake-parts_3", - "nixpkgs": "nixpkgs_3" + "nixpkgs": [ + "nixpkgs" + ] }, "locked": { "lastModified": 1752199489, @@ -600,17 +624,15 @@ }, "nixpkgs": { "locked": { - "lastModified": 1733808091, - "narHash": "sha256-KWwINTQelKOoQgrXftxoqxmKFZb9pLVfnRvK270nkVk=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "a0f3e10d94359665dba45b71b4227b0aeb851f8e", - "type": "github" + "lastModified": 1748189127, + "narHash": "sha256-zRDR+EbbeObu4V2X5QCd2Bk5eltfDlCr5yvhBwUT6pY=", + "rev": "7c43f080a7f28b2774f3b3f43234ca11661bf334", + "type": "tarball", + "url": "https://releases.nixos.org/nixos/25.05/nixos-25.05.802491.7c43f080a7f2/nixexprs.tar.xz" }, "original": { - "id": "nixpkgs", - "ref": "nixos-24.11", - "type": "indirect" + "type": "tarball", + "url": "https://channels.nixos.org/nixos-25.05/nixexprs.tar.xz" } }, "nixpkgs-darwin": { @@ -709,35 +731,6 @@ } }, "nixpkgs_2": { - "locked": { - "lastModified": 1748189127, - "narHash": "sha256-zRDR+EbbeObu4V2X5QCd2Bk5eltfDlCr5yvhBwUT6pY=", - "rev": "7c43f080a7f28b2774f3b3f43234ca11661bf334", - "type": "tarball", - "url": "https://releases.nixos.org/nixos/25.05/nixos-25.05.802491.7c43f080a7f2/nixexprs.tar.xz" - }, - "original": { - "type": "tarball", - "url": "https://channels.nixos.org/nixos-25.05/nixexprs.tar.xz" - } - }, - "nixpkgs_3": { - "locked": { - "lastModified": 1751625545, - "narHash": "sha256-4E7wWftF1ExK5ZEDzj41+9mVgxtuRV3wWCId7QAYMAU=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "c860cf0b3a0829f0f6cf344ca8de83a2bbfab428", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixpkgs-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "nixpkgs_4": { "locked": { "lastModified": 1751984180, "narHash": "sha256-LwWRsENAZJKUdD3SpLluwDmdXY9F45ZEgCb0X+xgOL0=", @@ -753,23 +746,11 @@ "type": "github" } }, - "nixpkgs_5": { - "locked": { - "lastModified": 1701436327, - "narHash": "sha256-tRHbnoNI8SIM5O5xuxOmtSLnswEByzmnQcGGyNRjxsE=", - "rev": "91050ea1e57e50388fa87a3302ba12d188ef723a", - "revCount": 555097, - "type": "tarball", - "url": "https://api.flakehub.com/f/pinned/NixOS/nixpkgs/0.1.555097%2Brev-91050ea1e57e50388fa87a3302ba12d188ef723a/018c3450-2363-7c34-883b-4ba70b1eb7ae/source.tar.gz" - }, - "original": { - "type": "tarball", - "url": "https://flakehub.com/f/NixOS/nixpkgs/0.1.%2A.tar.gz" - } - }, "nuenv": { "inputs": { - "nixpkgs": "nixpkgs_5", + "nixpkgs": [ + "nixpkgs" + ], "rust-overlay": "rust-overlay_2" }, "locked": { @@ -891,6 +872,7 @@ "agenix": "agenix", "anyrun": "anyrun", "blender-bin": "blender-bin", + "catppuccin": "catppuccin", "disko": "disko", "ghostty": "ghostty", "haumea": "haumea", @@ -902,7 +884,7 @@ "nixos-generators": "nixos-generators", "nixos-hardware": "nixos-hardware", "nixpak": "nixpak", - "nixpkgs": "nixpkgs_4", + "nixpkgs": "nixpkgs_2", "nixpkgs-darwin": "nixpkgs-darwin", "nixpkgs-ollama": "nixpkgs-ollama", "nixpkgs-stable": "nixpkgs-stable_2", diff --git a/flake.nix b/flake.nix index 446aa417..672641d5 100644 --- a/flake.nix +++ b/flake.nix @@ -61,12 +61,20 @@ inputs.nixpkgs.follows = "nixpkgs"; }; + # https://github.com/catppuccin/nix + catppuccin = { + url = "github:catppuccin/nix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + lanzaboote = { url = "github:nix-community/lanzaboote/v0.4.2"; inputs.nixpkgs.follows = "nixpkgs"; }; - preservation.url = "github:nix-community/preservation"; + preservation = { + url = "github:nix-community/preservation"; + }; # community wayland nixpkgs # nixpkgs-wayland.url = "github:nix-community/nixpkgs-wayland"; @@ -90,7 +98,10 @@ inputs.nixpkgs.follows = "nixpkgs"; }; - nix-gaming.url = "github:fufexan/nix-gaming"; + nix-gaming = { + url = "github:fufexan/nix-gaming"; + inputs.nixpkgs.follows = "nixpkgs"; + }; disko = { url = "github:nix-community/disko/v1.11.0"; @@ -103,7 +114,10 @@ inputs.nixpkgs.follows = "nixpkgs"; }; - nuenv.url = "github:DeterminateSystems/nuenv"; + nuenv = { + url = "github:DeterminateSystems/nuenv"; + inputs.nixpkgs.follows = "nixpkgs"; + }; haumea = { url = "github:nix-community/haumea/v0.2.2"; @@ -119,7 +133,10 @@ url = "github:ghostty-org/ghostty"; }; - blender-bin.url = "github:edolstra/nix-warez?dir=blender"; + blender-bin = { + url = "github:edolstra/nix-warez?dir=blender"; + inputs.nixpkgs.follows = "nixpkgs"; + }; ######################## Some non-flake repositories ######################################### diff --git a/home/base/core/btop.nix b/home/base/core/btop.nix index 5f94613f..bc955c88 100644 --- a/home/base/core/btop.nix +++ b/home/base/core/btop.nix @@ -1,16 +1,8 @@ { - pkgs, - nur-ryan4yin, - ... -}: { - # https://github.com/catppuccin/btop/blob/main/themes/catppuccin_mocha.theme - xdg.configFile."btop/themes".source = "${nur-ryan4yin.packages.${pkgs.system}.catppuccin-btop}/themes"; - # replacement of htop/nmon programs.btop = { enable = true; settings = { - color_theme = "catppuccin_mocha"; theme_background = false; # make btop transparent }; }; diff --git a/home/base/core/core.nix b/home/base/core/core.nix index c7994003..33ca8084 100644 --- a/home/base/core/core.nix +++ b/home/base/core/core.nix @@ -1,8 +1,4 @@ -{ - pkgs, - nur-ryan4yin, - ... -}: { +{pkgs, ...}: { home.packages = with pkgs; [ # Misc cowsay @@ -25,8 +21,6 @@ sad # CLI search and replace, just like sed, but with diff preview. yq-go # yaml processor https://github.com/mikefarah/yq just # a command runner like make, but simpler - delta # A viewer for git and diff output - lazygit # Git terminal UI. hyperfine # command-line benchmarking tool gping # ping, but with a graph(TUI) doggo # DNS client for humans @@ -53,103 +47,75 @@ ncdu # analyzer your disk usage Interactively, via TUI(replacement of `du`) ]; - programs = { - # A modern replacement for ‘ls’ - # useful in bash/zsh prompt, not in nushell. - eza = { - enable = true; - # do not enable aliases in nushell! - enableNushellIntegration = false; - git = true; - icons = "auto"; - }; + # A modern replacement for ‘ls’ + # useful in bash/zsh prompt, not in nushell. + programs.eza = { + enable = true; + # do not enable aliases in nushell! + enableNushellIntegration = false; + git = true; + icons = "auto"; + }; - # a cat(1) clone with syntax highlighting and Git integration. - bat = { - enable = true; - config = { - pager = "less -FR"; - theme = "catppuccin-mocha"; - }; - themes = { - # https://raw.githubusercontent.com/catppuccin/bat/main/Catppuccin-mocha.tmTheme - catppuccin-mocha = { - src = nur-ryan4yin.packages.${pkgs.system}.catppuccin-bat; - file = "Catppuccin-mocha.tmTheme"; - }; - }; - }; - - # A command-line fuzzy finder - fzf = { - enable = true; - # https://github.com/catppuccin/fzf - # catppuccin-mocha - colors = { - "bg+" = "#313244"; - "bg" = "#1e1e2e"; - "spinner" = "#f5e0dc"; - "hl" = "#f38ba8"; - "fg" = "#cdd6f4"; - "header" = "#f38ba8"; - "info" = "#cba6f7"; - "pointer" = "#f5e0dc"; - "marker" = "#f5e0dc"; - "fg+" = "#cdd6f4"; - "prompt" = "#cba6f7"; - "hl+" = "#f38ba8"; - }; - }; - - # very fast version of tldr in Rust - tealdeer = { - enable = true; - enableAutoUpdates = true; - settings = { - display = { - compact = false; - use_pager = true; - }; - updates = { - auto_update = false; - auto_update_interval_hours = 720; - }; - }; - }; - - # zoxide is a smarter cd command, inspired by z and autojump. - # It remembers which directories you use most frequently, - # so you can "jump" to them in just a few keystrokes. - # zoxide works on all major shells. - # - # z foo # cd into highest ranked directory matching foo - # z foo bar # cd into highest ranked directory matching foo and bar - # z foo / # cd into a subdirectory starting with foo - # - # z ~/foo # z also works like a regular cd command - # z foo/ # cd into relative path - # z .. # cd one level up - # z - # cd into previous directory - # - # zi foo # cd with interactive selection (using fzf) - # - # z foo # show interactive completions (zoxide v0.8.0+, bash 4.4+/fish/zsh only) - zoxide = { - enable = true; - enableBashIntegration = true; - enableZshIntegration = true; - enableNushellIntegration = true; - }; - - # Atuin replaces your existing shell history with a SQLite database, - # and records additional context for your commands. - # Additionally, it provides optional and fully encrypted - # synchronisation of your history between machines, via an Atuin server. - atuin = { - enable = true; - enableBashIntegration = true; - enableZshIntegration = true; - enableNushellIntegration = true; + # a cat(1) clone with syntax highlighting and Git integration. + programs.bat = { + enable = true; + config = { + pager = "less -FR"; }; }; + + # A command-line fuzzy finder + programs.fzf.enable = true; + + # very fast version of tldr in Rust + programs.tealdeer = { + enable = true; + enableAutoUpdates = true; + settings = { + display = { + compact = false; + use_pager = true; + }; + updates = { + auto_update = false; + auto_update_interval_hours = 720; + }; + }; + }; + + # zoxide is a smarter cd command, inspired by z and autojump. + # It remembers which directories you use most frequently, + # so you can "jump" to them in just a few keystrokes. + # zoxide works on all major shells. + # + # z foo # cd into highest ranked directory matching foo + # z foo bar # cd into highest ranked directory matching foo and bar + # z foo / # cd into a subdirectory starting with foo + # + # z ~/foo # z also works like a regular cd command + # z foo/ # cd into relative path + # z .. # cd one level up + # z - # cd into previous directory + # + # zi foo # cd with interactive selection (using fzf) + # + # z foo # show interactive completions (zoxide v0.8.0+, bash 4.4+/fish/zsh only) + programs.zoxide = { + enable = true; + enableBashIntegration = true; + enableZshIntegration = true; + enableNushellIntegration = true; + }; + + # Atuin replaces your existing shell history with a SQLite database, + # and records additional context for your commands. + # Additionally, it provides optional and fully encrypted + # synchronisation of your history between machines, via an Atuin server. + programs.atuin = { + enable = true; + enableBashIntegration = true; + enableZshIntegration = true; + enableNushellIntegration = true; + }; } diff --git a/home/base/core/git.nix b/home/base/core/git.nix index 2d450955..0a3126a0 100644 --- a/home/base/core/git.nix +++ b/home/base/core/git.nix @@ -76,7 +76,7 @@ # signByDefault = true; # }; - # A syntax-highlighting pager in Rust(2019 ~ Now) + # A syntax-highlighting pager for git, diff, grep, and blame output delta = { enable = true; options = { @@ -116,4 +116,10 @@ foreach = "submodule foreach"; }; }; + + # Git terminal UI (written in go). + programs.lazygit.enable = true; + + # Yet another Git TUI (written in rust). + programs.gitui.enable = true; } diff --git a/home/base/core/starship.nix b/home/base/core/starship.nix index 553ae2cd..004c4351 100644 --- a/home/base/core/starship.nix +++ b/home/base/core/starship.nix @@ -1,8 +1,4 @@ { - pkgs, - nur-ryan4yin, - ... -}: { programs.starship = { enable = true; @@ -10,24 +6,20 @@ enableZshIntegration = true; enableNushellIntegration = true; - settings = - { - character = { - success_symbol = "[›](bold green)"; - error_symbol = "[›](bold red)"; - }; - aws = { - symbol = "🅰 "; - }; - gcloud = { - # do not show the account/project's info - # to avoid the leak of sensitive information when sharing the terminal - format = "on [$symbol$active(\($region\))]($style) "; - symbol = "🅶 ️"; - }; - - palette = "catppuccin_mocha"; - } - // builtins.fromTOML (builtins.readFile "${nur-ryan4yin.packages.${pkgs.system}.catppuccin-starship}/palettes/mocha.toml"); + settings = { + character = { + success_symbol = "[›](bold green)"; + error_symbol = "[›](bold red)"; + }; + aws = { + symbol = "🅰 "; + }; + gcloud = { + # do not show the account/project's info + # to avoid the leak of sensitive information when sharing the terminal + format = "on [$symbol$active(\($region\))]($style) "; + symbol = "🅶 ️"; + }; + }; }; } diff --git a/home/base/core/theme.nix b/home/base/core/theme.nix new file mode 100644 index 00000000..aed3ad0f --- /dev/null +++ b/home/base/core/theme.nix @@ -0,0 +1,15 @@ +{catppuccin, ...}: { + # https://github.com/catppuccin/nix + imports = [ + catppuccin.homeModules.catppuccin + ]; + + catppuccin = { + # The default `enable` value for all available programs. + enable = true; + # one of "latte", "frappe", "macchiato", "mocha" + flavor = "mocha"; + # one of "blue", "flamingo", "green", "lavender", "maroon", "mauve", "peach", "pink", "red", "rosewater", "sapphire", "sky", "teal", "yellow" + accent = "pink"; + }; +} diff --git a/home/base/core/yazi.nix b/home/base/core/yazi.nix index 92ba566d..bb0dd19c 100644 --- a/home/base/core/yazi.nix +++ b/home/base/core/yazi.nix @@ -1,13 +1,8 @@ -{ - pkgs, - pkgs-unstable, - nur-ryan4yin, - ... -}: { +{pkgs, ...}: { # terminal file manager programs.yazi = { enable = true; - package = pkgs-unstable.yazi; + package = pkgs.yazi; # Changing working directory when exiting Yazi enableBashIntegration = true; enableNushellIntegration = true; @@ -18,6 +13,4 @@ }; }; }; - - xdg.configFile."yazi/theme.toml".source = "${nur-ryan4yin.packages.${pkgs.system}.catppuccin-yazi}/mocha.toml"; } diff --git a/home/base/gui/terminal/alacritty/catppuccin-mocha.toml b/home/base/gui/terminal/alacritty/catppuccin-mocha.toml deleted file mode 100644 index 7762dcdb..00000000 --- a/home/base/gui/terminal/alacritty/catppuccin-mocha.toml +++ /dev/null @@ -1,65 +0,0 @@ -[colors.primary] -background = "#1e1e2e" -foreground = "#cdd6f4" -dim_foreground = "#7f849c" -bright_foreground = "#cdd6f4" - -[colors.cursor] -text = "#1e1e2e" -cursor = "#f5e0dc" - -[colors.vi_mode_cursor] -text = "#1e1e2e" -cursor = "#b4befe" - -[colors.search.matches] -foreground = "#1e1e2e" -background = "#a6adc8" - -[colors.search.focused_match] -foreground = "#1e1e2e" -background = "#a6e3a1" - -[colors.footer_bar] -foreground = "#1e1e2e" -background = "#a6adc8" - -[colors.hints.start] -foreground = "#1e1e2e" -background = "#f9e2af" - -[colors.hints.end] -foreground = "#1e1e2e" -background = "#a6adc8" - -[colors.selection] -text = "#1e1e2e" -background = "#f5e0dc" - -[colors.normal] -black = "#45475a" -red = "#f38ba8" -green = "#a6e3a1" -yellow = "#f9e2af" -blue = "#89b4fa" -magenta = "#f5c2e7" -cyan = "#94e2d5" -white = "#bac2de" - -[colors.bright] -black = "#585b70" -red = "#f38ba8" -green = "#a6e3a1" -yellow = "#f9e2af" -blue = "#89b4fa" -magenta = "#f5c2e7" -cyan = "#94e2d5" -white = "#a6adc8" - -[[colors.indexed_colors]] -index = 16 -color = "#fab387" - -[[colors.indexed_colors]] -index = 17 -color = "#f5e0dc" diff --git a/home/base/gui/terminal/alacritty/default.nix b/home/base/gui/terminal/alacritty/default.nix index 248bb071..73fe8719 100644 --- a/home/base/gui/terminal/alacritty/default.nix +++ b/home/base/gui/terminal/alacritty/default.nix @@ -29,9 +29,6 @@ package = pkgs-unstable.alacritty; # https://alacritty.org/config-alacritty.html settings = { - general.import = [ - ./catppuccin-mocha.toml - ]; window = { opacity = 0.93; startup_mode = "Maximized"; # Maximized window @@ -43,10 +40,18 @@ history = 10000; }; font = { - bold = {family = "Maple Mono NF CN";}; - italic = {family = "Maple Mono NF CN";}; - normal = {family = "Maple Mono NF CN";}; - bold_italic = {family = "Maple Mono NF CN";}; + bold = { + family = "Maple Mono NF CN"; + }; + italic = { + family = "Maple Mono NF CN"; + }; + normal = { + family = "Maple Mono NF CN"; + }; + bold_italic = { + family = "Maple Mono NF CN"; + }; size = if pkgs.stdenv.isDarwin then 14 @@ -56,7 +61,11 @@ # Spawn a nushell in login mode via `bash` shell = { program = "${pkgs.bash}/bin/bash"; - args = ["--login" "-c" "nu --login --interactive"]; + args = [ + "--login" + "-c" + "nu --login --interactive" + ]; }; # Controls the ability to write to the system clipboard with the OSC 52 escape sequence. # It's used by zellij to copy text to the system clipboard. diff --git a/home/base/gui/terminal/foot.nix b/home/base/gui/terminal/foot.nix index 7dbace75..b832f4d3 100644 --- a/home/base/gui/terminal/foot.nix +++ b/home/base/gui/terminal/foot.nix @@ -26,47 +26,6 @@ mouse = { hide-when-typing = "yes"; }; - - # https://github.com/catppuccin/foot/blob/main/themes/catppuccin-mocha.ini - cursor = { - color = "11111b f5e0dc"; - }; - colors = { - alpha = "0.93"; # background opacity - - foreground = "cdd6f4"; - background = "1e1e2e"; - - regular0 = "45475a"; - regular1 = "f38ba8"; - regular2 = "a6e3a1"; - regular3 = "f9e2af"; - regular4 = "89b4fa"; - regular5 = "f5c2e7"; - regular6 = "94e2d5"; - regular7 = "bac2de"; - - bright0 = "585b70"; - bright1 = "f38ba8"; - bright2 = "a6e3a1"; - bright3 = "f9e2af"; - bright4 = "89b4fa"; - bright5 = "f5c2e7"; - bright6 = "94e2d5"; - bright7 = "a6adc8"; - - "16" = "fab387"; - "17" = "f5e0dc"; - - "selection-foreground" = "cdd6f4"; - "selection-background" = "414356"; - - "search-box-no-match" = "11111b f38ba8"; - "search-box-match" = "cdd6f4 313244"; - - "jump-labels" = "11111b fab387"; - urls = "89b4fa"; - }; }; }; } diff --git a/home/base/gui/terminal/ghostty.nix b/home/base/gui/terminal/ghostty.nix index b0ddae4a..caae8326 100644 --- a/home/base/gui/terminal/ghostty.nix +++ b/home/base/gui/terminal/ghostty.nix @@ -20,8 +20,6 @@ installBatSyntax = false; # installVimSyntax = true; settings = { - theme = "catppuccin-mocha"; - font-family = "Maple Mono NF CN"; font-size = 13; diff --git a/home/base/gui/terminal/kitty.nix b/home/base/gui/terminal/kitty.nix index 50be0396..22042563 100644 --- a/home/base/gui/terminal/kitty.nix +++ b/home/base/gui/terminal/kitty.nix @@ -16,10 +16,6 @@ { programs.kitty = { enable = true; - # kitty has catppuccin theme built-in, - # all the built-in themes are packaged into an extra package named `kitty-themes` - # and it's installed by home-manager if `theme` is specified. - themeFile = "Catppuccin-Mocha"; font = { name = "Maple Mono NF CN"; # use different font size on macOS diff --git a/home/base/tui/container.nix b/home/base/tui/container.nix index 8a552c4d..6da4a3bb 100644 --- a/home/base/tui/container.nix +++ b/home/base/tui/container.nix @@ -29,32 +29,11 @@ ko # build go project to container image ]; - programs = { - k9s = { - enable = true; - # https://k9scli.io/topics/aliases/ - # aliases = {}; - settings = { - skin = "catppuccino-mocha"; - }; - skins.catppuccin-mocha = let - skin_file = "${nur-ryan4yin.packages.${pkgs.system}.catppuccin-k9s}/dist/mocha.yml"; # theme - catppuccin mocha - skin_attr = builtins.fromJSON ( - builtins.readFile - # replace 'base: &base "#1e1e2e"' with 'base: &base "default"' - # to make fg/bg color transparent. "default" means transparent in k9s skin. - (pkgs.runCommandNoCC "get-skin-json" {} '' - cat ${skin_file} \ - | sed -E 's@(base: &base ).+@\1 "default"@g' \ - | ${pkgs.yj}/bin/yj > $out - '') - ); - in - skin_attr; - }; - kubecolor = { - enable = true; - enableAlias = true; - }; + programs.k9s.enable = true; + catppuccin.k9s.transparent = true; + + programs.kubecolor = { + enable = true; + enableAlias = true; }; } diff --git a/home/base/tui/editors/helix/default.nix b/home/base/tui/editors/helix/default.nix index bccfeec9..b8497810 100644 --- a/home/base/tui/editors/helix/default.nix +++ b/home/base/tui/editors/helix/default.nix @@ -1,16 +1,8 @@ -{ - pkgs, - nur-ryan4yin, - ... -}: { - # https://github.com/catppuccin/helix - xdg.configFile."helix/themes".source = "${nur-ryan4yin.packages.${pkgs.system}.catppuccin-helix}/themes/default"; - +{pkgs, ...}: { programs.helix = { enable = true; package = pkgs.helix; settings = { - theme = "catppuccin_mocha"; editor = { line-number = "relative"; cursorline = true; @@ -29,7 +21,10 @@ w = ":w"; q = ":q"; }; - esc = ["collapse_selection" "keep_primary_selection"]; + esc = [ + "collapse_selection" + "keep_primary_selection" + ]; }; }; }; diff --git a/home/base/tui/zellij/config.kdl b/home/base/tui/zellij/config.kdl index 9053345b..15ee3669 100644 --- a/home/base/tui/zellij/config.kdl +++ b/home/base/tui/zellij/config.kdl @@ -303,75 +303,6 @@ default_shell "nu" // // scrollback_lines_to_serialize 10000 -// Define color themes for Zellij -// For more examples, see: https://github.com/zellij-org/zellij/tree/main/example/themes -// Once these themes are defined, one of them should to be selected in the "theme" section of this file -// -themes { - // https://github.com/zellij-org/zellij/blob/main/zellij-utils/assets/themes/catppuccin.kdl - catppuccin-latte { - bg "#acb0be" // Surface2 - fg "#acb0be" // Surface2 - red "#d20f39" - green "#40a02b" - blue "#1e66f5" - yellow "#df8e1d" - magenta "#ea76cb" // Pink - orange "#fe640b" // Peach - cyan "#04a5e5" // Sky - black "#dce0e8" // Crust - white "#4c4f69" // Text - } - - catppuccin-frappe { - bg "#626880" // Surface2 - fg "#c6d0f5" - red "#e78284" - green "#a6d189" - blue "#8caaee" - yellow "#e5c890" - magenta "#f4b8e4" // Pink - orange "#ef9f76" // Peach - cyan "#99d1db" // Sky - black "#292c3c" // Mantle - white "#c6d0f5" - } - - catppuccin-macchiato { - bg "#5b6078" // Surface2 - fg "#cad3f5" - red "#ed8796" - green "#a6da95" - blue "#8aadf4" - yellow "#eed49f" - magenta "#f5bde6" // Pink - orange "#f5a97f" // Peach - cyan "#91d7e3" // Sky - black "#1e2030" // Mantle - white "#cad3f5" - } - - catppuccin-mocha { - bg "#585b70" // Surface2 - fg "#cdd6f4" - red "#f38ba8" - green "#a6e3a1" - blue "#89b4fa" - yellow "#f9e2af" - magenta "#f5c2e7" // Pink - orange "#fab387" // Peach - cyan "#89dceb" // Sky - black "#181825" // Mantle - white "#cdd6f4" - } -} - -// Choose the theme that is specified in the themes section. -// Default: default -// -theme "catppuccin-mocha" - - // The name of the default layout to load on startup // Default: "default" // (Requires restart) diff --git a/home/base/tui/zellij/default.nix b/home/base/tui/zellij/default.nix index d112dc1b..4542a3bd 100644 --- a/home/base/tui/zellij/default.nix +++ b/home/base/tui/zellij/default.nix @@ -7,6 +7,7 @@ in { enable = true; package = pkgs.zellij; }; + # auto start zellij in nushell programs.nushell.extraConfig = '' # auto start zellij diff --git a/home/linux/gui/base/fcitx5/classicui.conf b/home/linux/gui/base/fcitx5/classicui.conf deleted file mode 100644 index 19cb339f..00000000 --- a/home/linux/gui/base/fcitx5/classicui.conf +++ /dev/null @@ -1,26 +0,0 @@ -# Vertical Candidate List -Vertical Candidate List=False -# Use Per Screen DPI -PerScreenDPI=True -# Use mouse wheel to go to prev or next page -WheelForPaging=True -# Font -Font="Sans 10" -# Menu Font -MenuFont="Sans 10" -# Tray Font -TrayFont="Sans Bold 10" -# Tray Label Outline Color -TrayOutlineColor=#000000 -# Tray Label Text Color -TrayTextColor=#ffffff -# Prefer Text Icon -PreferTextIcon=False -# Show Layout Name In Icon -ShowLayoutNameInIcon=True -# Use input method language to display text -UseInputMethodLangaugeToDisplayText=True -# Theme macchiato, frappe, latte, mocha -Theme=catppuccin-mocha -# Force font DPI on Wayland -ForceWaylandDPI=0 diff --git a/home/linux/gui/base/fcitx5/default.nix b/home/linux/gui/base/fcitx5/default.nix index 98db037e..6afff3db 100644 --- a/home/linux/gui/base/fcitx5/default.nix +++ b/home/linux/gui/base/fcitx5/default.nix @@ -1,10 +1,4 @@ -{ - pkgs, - nur-ryan4yin, - ... -}: { - home.file.".local/share/fcitx5/themes".source = "${nur-ryan4yin.packages.${pkgs.system}.catppuccin-fcitx5}/src"; - +{pkgs, ...}: { xdg.configFile = { "fcitx5/profile" = { source = ./profile; @@ -12,8 +6,8 @@ # so we need to force replace it in every rebuild to avoid file conflict. force = true; }; - "fcitx5/conf/classicui.conf".source = ./classicui.conf; }; + catppuccin.fcitx5.enable = true; i18n.inputMethod = { enable = true; diff --git a/home/linux/gui/base/gtk.nix b/home/linux/gui/base/gtk.nix index 1b824553..a69fc9f0 100644 --- a/home/linux/gui/base/gtk.nix +++ b/home/linux/gui/base/gtk.nix @@ -42,16 +42,5 @@ name = "Papirus-Dark"; package = pkgs.papirus-icon-theme; }; - - theme = { - # https://github.com/catppuccin/gtk - name = "catppuccin-macchiato-pink-compact"; - package = pkgs.catppuccin-gtk.override { - # https://github.com/NixOS/nixpkgs/blob/nixos-23.05/pkgs/data/themes/catppuccin-gtk/default.nix - accents = ["pink"]; - size = "compact"; - variant = "macchiato"; - }; - }; }; } diff --git a/home/linux/gui/base/media.nix b/home/linux/gui/base/media.nix index 5334e321..c825877d 100644 --- a/home/linux/gui/base/media.nix +++ b/home/linux/gui/base/media.nix @@ -13,31 +13,20 @@ pulsemixer imv # simple image viewer - nvtopPackages.full - # video/audio tools - # cava # for visualizing audio libva-utils vdpauinfo vulkan-tools glxinfo + nvitop (zoom-us.override {hyprlandXdgDesktopPortalSupport = true;}) ]; - # https://github.com/catppuccin/cava - xdg.configFile."cava/config".text = - '' - # custom cava config - '' - + builtins.readFile "${nur-ryan4yin.packages.${pkgs.system}.catppuccin-cava}/mocha.cava"; - - programs = { - mpv = { - enable = true; - defaultProfiles = ["gpu-hq"]; - scripts = [pkgs.mpvScripts.mpris]; - }; + programs.mpv = { + enable = true; + defaultProfiles = ["gpu-hq"]; + scripts = [pkgs.mpvScripts.mpris]; }; services = { diff --git a/home/linux/gui/hyprland/values/hyprland.nix b/home/linux/gui/hyprland/values/hyprland.nix index 9d337626..ece1f905 100644 --- a/home/linux/gui/hyprland/values/hyprland.nix +++ b/home/linux/gui/hyprland/values/hyprland.nix @@ -1,8 +1,6 @@ { pkgs, config, - lib, - nur-ryan4yin, ... }: let package = pkgs.hyprland; @@ -47,7 +45,6 @@ in { source = let configPath = "${config.home.homeDirectory}/.config/hypr/configs"; in [ - "${nur-ryan4yin.packages.${pkgs.system}.catppuccin-hyprland}/themes/mocha.conf" "${configPath}/exec.conf" "${configPath}/fcitx5.conf" "${configPath}/keybindings.conf"