feat(rice): catppuccin -> milspec

This commit is contained in:
winston 2024-05-30 20:02:02 +02:00
parent 72ea1a1f04
commit 8105c1ed34
Signed by: winston
GPG key ID: 3786770EDBC2B481
20 changed files with 180 additions and 309 deletions

View file

@ -18,7 +18,6 @@ Here's what you can find:
- **Firefox** with privacy-centered settings, though I don't use it heavily anymore. - **Firefox** with privacy-centered settings, though I don't use it heavily anymore.
- My **GPG** & **[Sops.nix](https://github.com/Mic92/sops-nix)** settings - My **GPG** & **[Sops.nix](https://github.com/Mic92/sops-nix)** settings
- Other random bits of config tools I've collected over the years - Other random bits of config tools I've collected over the years
- The **[Catppuccin](https://github.com/catppuccin)** theme, wherever possible
- macOS: - macOS:
- **[Yabai](https://github.com/koekeishiya/yabai)** as my WM - **[Yabai](https://github.com/koekeishiya/yabai)** as my WM
- Linux: - Linux:

View file

@ -11,18 +11,19 @@
"fetchSubmodules": false, "fetchSubmodules": false,
"leaveDotGit": false, "leaveDotGit": false,
"name": null, "name": null,
"owner": "catppuccin",
"repo": "bat",
"rev": "d714cc1d358ea51bfc02550dabab693f70cccea0", "rev": "d714cc1d358ea51bfc02550dabab693f70cccea0",
"sha256": "sha256-Q5B4NDrfCIK3UAMs94vdXnR42k4AXCqZz6sRn8bzmf4=", "sha256": "sha256-Q5B4NDrfCIK3UAMs94vdXnR42k4AXCqZz6sRn8bzmf4=",
"type": "git", "type": "github"
"url": "https://github.com/catppuccin/bat"
}, },
"version": "d714cc1d358ea51bfc02550dabab693f70cccea0" "version": "d714cc1d358ea51bfc02550dabab693f70cccea0"
}, },
"catppuccin-wezterm": { "milspec": {
"cargoLocks": null, "cargoLocks": null,
"date": "2023-04-12", "date": "2024-05-30",
"extract": null, "extract": null,
"name": "catppuccin-wezterm", "name": "milspec",
"passthru": null, "passthru": null,
"pinned": false, "pinned": false,
"src": { "src": {
@ -30,31 +31,13 @@
"fetchSubmodules": false, "fetchSubmodules": false,
"leaveDotGit": false, "leaveDotGit": false,
"name": null, "name": null,
"rev": "b1a81bae74d66eaae16457f2d8f151b5bd4fe5da", "owner": "nekowinston",
"sha256": "sha256-McSWoZaJeK+oqdK/0vjiRxZGuLBpEB10Zg4+7p5dIGY=", "repo": "milspec.nvim",
"type": "git", "rev": "89b7d29dad6708c04821cbf8ba8c80294f8d1733",
"url": "https://github.com/catppuccin/wezterm" "sha256": "sha256-GWto6Y+2ZJXgTbOApQrhzsBT9sPENhgqoD6SSxykAVE=",
"type": "github"
}, },
"version": "b1a81bae74d66eaae16457f2d8f151b5bd4fe5da" "version": "89b7d29dad6708c04821cbf8ba8c80294f8d1733"
},
"catppuccin-zsh-fsh": {
"cargoLocks": null,
"date": "2024-04-09",
"extract": null,
"name": "catppuccin-zsh-fsh",
"passthru": null,
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"rev": "dd7baca6e0e943f36d1a6721820346e91f25065f",
"sha256": "sha256-qd/+MHmgP+dOnYm6meSu5oCZ/TunCWGHnHqAXm79ERw=",
"type": "git",
"url": "https://github.com/catppuccin/zsh-fsh"
},
"version": "dd7baca6e0e943f36d1a6721820346e91f25065f"
}, },
"nekowinston-wezterm-bar": { "nekowinston-wezterm-bar": {
"cargoLocks": null, "cargoLocks": null,
@ -68,10 +51,11 @@
"fetchSubmodules": false, "fetchSubmodules": false,
"leaveDotGit": false, "leaveDotGit": false,
"name": null, "name": null,
"owner": "nekowinston",
"repo": "wezterm-bar",
"rev": "e96b81460b3ad11a7461934dcb7889ce5079f97f", "rev": "e96b81460b3ad11a7461934dcb7889ce5079f97f",
"sha256": "sha256-3acxqJ9HMA5hASWq/sVL9QQjfEw5Xrh2fT9nFuGjzHM=", "sha256": "sha256-3acxqJ9HMA5hASWq/sVL9QQjfEw5Xrh2fT9nFuGjzHM=",
"type": "git", "type": "github"
"url": "https://github.com/nekowinston/wezterm-bar"
}, },
"version": "e96b81460b3ad11a7461934dcb7889ce5079f97f" "version": "e96b81460b3ad11a7461934dcb7889ce5079f97f"
}, },
@ -102,10 +86,11 @@
"fetchSubmodules": false, "fetchSubmodules": false,
"leaveDotGit": false, "leaveDotGit": false,
"name": null, "name": null,
"owner": "zdharma-continuum",
"repo": "fast-syntax-highlighting",
"rev": "cf318e06a9b7c9f2219d78f41b46fa6e06011fd9", "rev": "cf318e06a9b7c9f2219d78f41b46fa6e06011fd9",
"sha256": "sha256-RVX9ZSzjBW3LpFs2W86lKI6vtcvDWP6EPxzeTcRZua4=", "sha256": "sha256-RVX9ZSzjBW3LpFs2W86lKI6vtcvDWP6EPxzeTcRZua4=",
"type": "git", "type": "github"
"url": "https://github.com/zdharma-continuum/fast-syntax-highlighting"
}, },
"version": "cf318e06a9b7c9f2219d78f41b46fa6e06011fd9" "version": "cf318e06a9b7c9f2219d78f41b46fa6e06011fd9"
} }

View file

@ -4,51 +4,35 @@
catppuccin-bat = { catppuccin-bat = {
pname = "catppuccin-bat"; pname = "catppuccin-bat";
version = "d714cc1d358ea51bfc02550dabab693f70cccea0"; version = "d714cc1d358ea51bfc02550dabab693f70cccea0";
src = fetchgit { src = fetchFromGitHub {
url = "https://github.com/catppuccin/bat"; owner = "catppuccin";
repo = "bat";
rev = "d714cc1d358ea51bfc02550dabab693f70cccea0"; rev = "d714cc1d358ea51bfc02550dabab693f70cccea0";
fetchSubmodules = false; fetchSubmodules = false;
deepClone = false;
leaveDotGit = false;
sha256 = "sha256-Q5B4NDrfCIK3UAMs94vdXnR42k4AXCqZz6sRn8bzmf4="; sha256 = "sha256-Q5B4NDrfCIK3UAMs94vdXnR42k4AXCqZz6sRn8bzmf4=";
}; };
date = "2024-04-25"; date = "2024-04-25";
}; };
catppuccin-wezterm = { milspec = {
pname = "catppuccin-wezterm"; pname = "milspec";
version = "b1a81bae74d66eaae16457f2d8f151b5bd4fe5da"; version = "89b7d29dad6708c04821cbf8ba8c80294f8d1733";
src = fetchgit { src = fetchFromGitHub {
url = "https://github.com/catppuccin/wezterm"; owner = "nekowinston";
rev = "b1a81bae74d66eaae16457f2d8f151b5bd4fe5da"; repo = "milspec.nvim";
rev = "89b7d29dad6708c04821cbf8ba8c80294f8d1733";
fetchSubmodules = false; fetchSubmodules = false;
deepClone = false; sha256 = "sha256-GWto6Y+2ZJXgTbOApQrhzsBT9sPENhgqoD6SSxykAVE=";
leaveDotGit = false;
sha256 = "sha256-McSWoZaJeK+oqdK/0vjiRxZGuLBpEB10Zg4+7p5dIGY=";
}; };
date = "2023-04-12"; date = "2024-05-30";
};
catppuccin-zsh-fsh = {
pname = "catppuccin-zsh-fsh";
version = "dd7baca6e0e943f36d1a6721820346e91f25065f";
src = fetchgit {
url = "https://github.com/catppuccin/zsh-fsh";
rev = "dd7baca6e0e943f36d1a6721820346e91f25065f";
fetchSubmodules = false;
deepClone = false;
leaveDotGit = false;
sha256 = "sha256-qd/+MHmgP+dOnYm6meSu5oCZ/TunCWGHnHqAXm79ERw=";
};
date = "2024-04-09";
}; };
nekowinston-wezterm-bar = { nekowinston-wezterm-bar = {
pname = "nekowinston-wezterm-bar"; pname = "nekowinston-wezterm-bar";
version = "e96b81460b3ad11a7461934dcb7889ce5079f97f"; version = "e96b81460b3ad11a7461934dcb7889ce5079f97f";
src = fetchgit { src = fetchFromGitHub {
url = "https://github.com/nekowinston/wezterm-bar"; owner = "nekowinston";
repo = "wezterm-bar";
rev = "e96b81460b3ad11a7461934dcb7889ce5079f97f"; rev = "e96b81460b3ad11a7461934dcb7889ce5079f97f";
fetchSubmodules = false; fetchSubmodules = false;
deepClone = false;
leaveDotGit = false;
sha256 = "sha256-3acxqJ9HMA5hASWq/sVL9QQjfEw5Xrh2fT9nFuGjzHM="; sha256 = "sha256-3acxqJ9HMA5hASWq/sVL9QQjfEw5Xrh2fT9nFuGjzHM=";
}; };
date = "2023-05-10"; date = "2023-05-10";
@ -64,12 +48,11 @@
zsh-fast-syntax-highlighting = { zsh-fast-syntax-highlighting = {
pname = "zsh-fast-syntax-highlighting"; pname = "zsh-fast-syntax-highlighting";
version = "cf318e06a9b7c9f2219d78f41b46fa6e06011fd9"; version = "cf318e06a9b7c9f2219d78f41b46fa6e06011fd9";
src = fetchgit { src = fetchFromGitHub {
url = "https://github.com/zdharma-continuum/fast-syntax-highlighting"; owner = "zdharma-continuum";
repo = "fast-syntax-highlighting";
rev = "cf318e06a9b7c9f2219d78f41b46fa6e06011fd9"; rev = "cf318e06a9b7c9f2219d78f41b46fa6e06011fd9";
fetchSubmodules = false; fetchSubmodules = false;
deepClone = false;
leaveDotGit = false;
sha256 = "sha256-RVX9ZSzjBW3LpFs2W86lKI6vtcvDWP6EPxzeTcRZua4="; sha256 = "sha256-RVX9ZSzjBW3LpFs2W86lKI6vtcvDWP6EPxzeTcRZua4=";
}; };
date = "2023-07-05"; date = "2023-07-05";

View file

@ -50,46 +50,6 @@
"type": "github" "type": "github"
} }
}, },
"catppuccin-toolbox": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1715991036,
"narHash": "sha256-ZVT4ttJ9gR/u2rlIrsGXX48pBFoemQfzvdDe4oHwzgs=",
"owner": "catppuccin",
"repo": "toolbox",
"rev": "145f7b68bd4be34daccd17cb5ddd9f6d7187c1ee",
"type": "github"
},
"original": {
"owner": "catppuccin",
"repo": "toolbox",
"type": "github"
}
},
"catppuccin-vsc": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1715401925,
"narHash": "sha256-EGZGHCv4OFqzFc9oP82LCKMWfMGsmadOOZ0DZHYSdns=",
"owner": "catppuccin",
"repo": "vscode",
"rev": "f0a6271f62ebb868f32c7ad4ecb31104c26f987a",
"type": "github"
},
"original": {
"owner": "catppuccin",
"repo": "vscode",
"type": "github"
}
},
"darwin": { "darwin": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -368,8 +328,6 @@
"inputs": { "inputs": {
"agenix": "agenix", "agenix": "agenix",
"caarlos0-nur": "caarlos0-nur", "caarlos0-nur": "caarlos0-nur",
"catppuccin-toolbox": "catppuccin-toolbox",
"catppuccin-vsc": "catppuccin-vsc",
"darwin": "darwin", "darwin": "darwin",
"flake-parts": "flake-parts", "flake-parts": "flake-parts",
"flake-utils": "flake-utils", "flake-utils": "flake-utils",

View file

@ -145,14 +145,6 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nekowinston-nur.url = "github:nekowinston/nur"; nekowinston-nur.url = "github:nekowinston/nur";
catppuccin-vsc = {
url = "github:catppuccin/vscode";
inputs.nixpkgs.follows = "nixpkgs";
};
catppuccin-toolbox = {
url = "github:catppuccin/toolbox";
inputs.nixpkgs.follows = "nixpkgs";
};
agenix = { agenix = {
url = "github:ryantm/agenix"; url = "github:ryantm/agenix";

View file

@ -7,10 +7,12 @@
let let
inherit (pkgs.stdenv) isDarwin isLinux; inherit (pkgs.stdenv) isDarwin isLinux;
vividCatppuccin = pkgs.runCommand "vivid-catppuccin" { nativeBuildInputs = [ pkgs.vivid ]; } '' milspec = (pkgs.callPackage ../../_sources/generated.nix { }).milspec;
vividMilspec = pkgs.runCommand "vivid-catppuccin" { nativeBuildInputs = [ pkgs.vivid ]; } ''
mkdir -p $out mkdir -p $out
for flavor in mocha macchiato frappe latte; do for variant in dark light; do
vivid generate "catppuccin-''${flavor}" > "$out/''${flavor}" vivid generate "${milspec.src}/extras/vivid/milspec-''${variant}.yml" > "$out/''${variant}"
done done
''; '';
in in
@ -64,31 +66,40 @@ in
}; };
}; };
xdg.configFile."fsh".source = "${milspec.src}/extras/zsh-fast-syntax-highlighting";
programs.zsh.initExtra = '' programs.zsh.initExtra = ''
zadm_sync() { zadm_sync() {
local flavor="$(dark-mode-ternary mocha latte)" local flavor="$(dark-mode-ternary mocha latte)"
local variant="$(dark-mode-ternary dark light)"
export BAT_THEME="Catppuccin ''${(C)flavor}" export BAT_THEME="Catppuccin ''${(C)flavor}"
export LS_COLORS="$(cat "${vividCatppuccin}/''${flavor}")" export LS_COLORS="$(cat "${vividMilspec}/''${variant}")"
export STARSHIP_CONFIG__PALETTE="catppuccin_''${flavor}" export STARSHIP_CONFIG__PALETTE="milspec_''${variant}"
fast-theme "XDG:catppuccin-''${flavor}" >/dev/null fast-theme "XDG:milspec-''${variant}" >/dev/null
} }
add-zsh-hook precmd zadm_sync add-zsh-hook precmd zadm_sync
''; '';
programs.nushell.extraConfig = '' programs.nushell.extraConfig = ''
use ${milspec.src}/extras/nu/milspec.nu
$env.config = ($env.config? | default {}) $env.config = ($env.config? | default {})
$env.config.color_config = (milspec -R dark)
$env.config.hooks = ($env.config.hooks? | default {}) $env.config.hooks = ($env.config.hooks? | default {})
$env.config.hooks.pre_prompt = ( $env.config.hooks.pre_prompt = (
$env.config.hooks.pre_prompt? $env.config.hooks.pre_prompt?
| default [] | default []
| append {|| | append {||
let flavor = dark-mode-ternary "mocha" "latte" let flavor = dark-mode-ternary "mocha" "latte"
let variant = dark-mode-ternary "dark" "light"
$env.config.color_config = (catppuccin $flavor) $env.config.color_config = (milspec -R $variant)
$env.BAT_THEME = "Catppuccin " + ($flavor | str capitalize) $env.BAT_THEME = "Catppuccin " + ($flavor | str capitalize)
$env.STARSHIP_CONFIG__PALETTE = "catppuccin_" + $flavor $env.STARSHIP_CONFIG__PALETTE = "milspec_" + $variant
$env.LS_COLORS = (cat $"${vividCatppuccin}/($flavor)") $env.LS_COLORS = (cat $"${vividMilspec}/($variant)")
} }
) )
''; '';

View file

@ -5,7 +5,10 @@
... ...
}: }:
let let
plugins = "${pkgs.nu_scripts}/share/nu_scripts"; nu_scripts = "${pkgs.nu_scripts}/share/nu_scripts";
# milspec = (pkgs.callPackage ../../_sources/generated.nix { }).milspec;
milspec.src = /Users/winston/Code/neovim/milspec;
shellAliases = lib.concatStringsSep "\n" ( shellAliases = lib.concatStringsSep "\n" (
lib.mapAttrsToList (k: v: "alias ${k} = ${v}") config.home.shellAliases lib.mapAttrsToList (k: v: "alias ${k} = ${v}") config.home.shellAliases
@ -20,7 +23,7 @@ let
name = el.name or el; name = el.name or el;
filename = el.filename or el; filename = el.filename or el;
in in
"source ${plugins}/custom-completions/${name}/${filename}-completions.nu" "source ${nu_scripts}/custom-completions/${name}/${filename}-completions.nu"
) completions ) completions
); );
@ -67,7 +70,7 @@ in
|cmd_name| (try { ${command-not-found} $cmd_name }) |cmd_name| (try { ${command-not-found} $cmd_name })
} }
source ${plugins}/aliases/git/git-aliases.nu source ${nu_scripts}/aliases/git/git-aliases.nu
'' ''
+ shellAliases + shellAliases
+ mkCompletions completions; + mkCompletions completions;

View file

@ -1,5 +1,4 @@
use ($nu.default-config-dir | path join 'config/keybindings.nu') use ($nu.default-config-dir | path join 'config/keybindings.nu')
use ($nu.default-config-dir | path join 'catppuccin.nu')
# use prompt indicators from starship # use prompt indicators from starship
$env.PROMPT_INDICATOR = "" $env.PROMPT_INDICATOR = ""
@ -15,27 +14,20 @@ $env.config = {
clickable_links: true clickable_links: true
} }
rm: { rm: { always_trash: false }
always_trash: false
}
table: { table: {
# basic, compact, compact_double, light, thin, with_love, rounded, reinforced, heavy, none, other mode: psql
mode: thin
# "always" show indexes, "never" show indexes, "auto" = show indexes when a table has "index" column
index_mode: auto index_mode: auto
# show 'empty list' and 'empty record' placeholders for command output
show_empty: true show_empty: true
# a left right padding of each column in a table
padding: { left: 1, right: 1 } padding: { left: 1, right: 1 }
trim: { trim: {
methodology: truncating # `wrapping` or `truncating` methodology: truncating
truncating_suffix: "…" truncating_suffix: "…"
} }
# show header text on separator/border line header_on_separator: true
header_on_separator: false
# limit data rows from top and bottom after reaching a set point # limit data rows from top and bottom after reaching a set point
# abbreviated_row_count: 10 # abbreviated_row_count: 100
} }
error_style: fancy error_style: fancy
@ -91,7 +83,6 @@ $env.config = {
vi_normal: inherit vi_normal: inherit
} }
color_config: (catppuccin "mocha")
use_grid_icons: true use_grid_icons: true
# always, never, number_of_rows, auto # always, never, number_of_rows, auto
footer_mode: 20 footer_mode: 20

View file

@ -16,7 +16,7 @@ export def main [] {
{ {
name: ide_completion_menu name: ide_completion_menu
modifier: control modifier: control
keycode: char_n keycode: char_j
mode: [vi_normal, vi_insert] mode: [vi_normal, vi_insert]
event: { event: {
until: [ until: [
@ -211,7 +211,7 @@ export def main [] {
{ {
name: move_down name: move_down
modifier: control modifier: control
keycode: char_t keycode: char_n
mode: [vi_normal, vi_insert] mode: [vi_normal, vi_insert]
event: { event: {
until: [ until: [

View file

@ -1,7 +1,7 @@
'$schema' = 'https://starship.rs/config-schema.json' '$schema' = 'https://starship.rs/config-schema.json'
format = """ format = """
[](surface2)\ [](gray)\
$directory\ $directory\
$username\ $username\
$hostname\ $hostname\
@ -70,21 +70,21 @@ $terraform)\
\ \
$line_break\ $line_break\
\ \
[](surface2)\ [](gray)\
$character""" $character"""
add_newline = true add_newline = true
continuation_prompt = '[>](bold subtext0) ' continuation_prompt = '[>](bold gray) '
palette = "catppuccin_mocha" palette = "milspec_dark"
[character] [character]
success_symbol = '[λ](bold text)' success_symbol = '[λ](bold fg)'
error_symbol = '[λ](bold red)' error_symbol = '[λ](bold red)'
vimcmd_symbol = '[](bold cyan)' vimcmd_symbol = '[](bold turquoise)'
[time] [time]
format = ' [$time]($style) ' format = ' [$time]($style) '
style = 'fg:subtext0' style = 'fg:gray'
disabled = true disabled = true
[directory] [directory]
@ -112,28 +112,28 @@ style = 'fg:red'
### VCS ### VCS
[git_branch] [git_branch]
format = '[$symbol$branch ]($style)' format = '[$symbol$branch ]($style)'
style = 'fg:peach' style = 'fg:orange'
symbol = ' ' symbol = ' '
ignore_branches = ['main', 'master'] ignore_branches = ['main', 'master']
[hg_branch] [hg_branch]
format = '[$symbol$branch ]($style)' format = '[$symbol$branch ]($style)'
style = 'fg:peach' style = 'fg:orange'
[git_commit] [git_commit]
format = '[$tag ]($style)' format = '[$tag ]($style)'
style = 'fg:peach' style = 'fg:orange'
tag_disabled = false tag_disabled = false
tag_symbol = ' ' tag_symbol = ' '
[git_state] [git_state]
format = '[\[$state($progress_current/$progress_total)\] ]($style)' format = '[\[$state($progress_current/$progress_total)\] ]($style)'
style = 'fg:peach' style = 'fg:orange'
disabled = false disabled = false
[git_status] [git_status]
format = '[$all_status$ahead_behind]($style)' format = '[$all_status$ahead_behind]($style)'
style = 'fg:peach' style = 'fg:orange'
ahead = ' ' ahead = ' '
behind = ' ' behind = ' '
conflicted = '󰩌 ' conflicted = '󰩌 '
@ -149,25 +149,25 @@ disabled = false
### SHELL STATUS ### SHELL STATUS
[cmd_duration] [cmd_duration]
format = '[ $duration ]($style)' format = '[ $duration ]($style)'
style = 'fg:yellow' style = 'fg:gold'
show_milliseconds = true show_milliseconds = true
min_time = 2000 min_time = 2000
[jobs] [jobs]
disabled = false disabled = false
symbol = ' ' symbol = ' '
style = 'fg:yellow' style = 'fg:gold'
[shlvl] [shlvl]
disabled = false disabled = false
format = '[$symbol$shlvl]($style) ' format = '[$symbol$shlvl]($style) '
style = 'fg:yellow' style = 'fg:gold'
symbol = ' ' symbol = ' '
threshold = 3 threshold = 3
[status] [status]
format = '[$symbol$status]($style) ' format = '[$symbol$status]($style) '
style = 'fg:yellow' style = 'fg:gold'
not_executable_symbol = ' ' not_executable_symbol = ' '
not_found_symbol = ' ' not_found_symbol = ' '
sigint_symbol = ' ' sigint_symbol = ' '
@ -179,7 +179,7 @@ disabled = true
[sudo] [sudo]
disabled = false disabled = false
format = '[$symbol ]($style)' format = '[$symbol ]($style)'
style = 'fg:yellow' style = 'fg:gold'
symbol = ' ' symbol = ' '
### LANGUAGE VERSION INDICATORS ### LANGUAGE VERSION INDICATORS
@ -389,37 +389,37 @@ symbol = '󰗹 '
[aws] [aws]
disabled = false disabled = false
format = '[$symbol($profile)(\($region\))(\[$duration\]) ]($style)' format = '[$symbol($profile)(\($region\))(\[$duration\]) ]($style)'
style = 'fg:mauve' style = 'fg:violet'
symbol = ' ' symbol = ' '
[azure] [azure]
disabled = true disabled = true
format = '[$symbol($subscription)]($style)' format = '[$symbol($subscription)]($style)'
style = 'fg:mauve' style = 'fg:violet'
symbol = ' ' symbol = ' '
[docker_context] [docker_context]
disabled = false disabled = false
format = '[$symbol$context ]($style)' format = '[$symbol$context ]($style)'
style = 'fg:mauve' style = 'fg:violet'
symbol = ' ' symbol = ' '
[gcloud] [gcloud]
disabled = false disabled = false
format = '[$symbol$account(@$domain)(\($region\)) ]($style)' format = '[$symbol$account(@$domain)(\($region\)) ]($style)'
style = 'fg:mauve' style = 'fg:violet'
symbol = ' ' symbol = ' '
[kubernetes] [kubernetes]
disabled = false disabled = false
format = '[$symbol($cluster/$namespace) ]($style)' format = '[$symbol($cluster/$namespace) ]($style)'
style = 'fg:mauve' style = 'fg:violet'
symbol = '󱃾 ' symbol = '󱃾 '
[openstack] [openstack]
disabled = false disabled = false
format = '[$symbol$cloud(\($project\)) ]($style)' format = '[$symbol$cloud(\($project\)) ]($style)'
style = 'fg:mauve' style = 'fg:violet'
symbol = ' ' symbol = ' '
[pulumi] [pulumi]
@ -430,119 +430,50 @@ style = 'fg:blue'
[terraform] [terraform]
disabled = false disabled = false
format = '[$symbol$workspace ]($style)' format = '[$symbol$workspace ]($style)'
style = 'fg:mauve' style = 'fg:violet'
symbol = '󱁢 ' symbol = '󱁢 '
### COLOR PALETTES ### COLOR PALETTES
[palettes.catppuccin_latte] [palettes.milspec_light]
rosewater = '#dc8a78' fg = "#111418"
flamingo = '#dd7878' bg = "#f6f7f9"
pink = '#ea76cb' gray = "#5f6b7c"
mauve = '#8839ef' bgGray = "#d3d8de"
red = '#d20f39' fgGray = "#404854"
maroon = '#e64553' core = "#ffffff"
peach = '#fe640b' blue = "#2d72d2"
yellow = '#df8e1d' green = "#238551"
green = '#40a02b' orange = "#c87619"
teal = '#179299' red = "#cd4246"
sky = '#04a5e5' vermilion = "#d33d17"
sapphire = '#209fb5' rose = "#db2c6f"
blue = '#1e66f5' violet = "#9d3f9d"
lavender = '#7287fd' indigo = "#7961db"
text = '#4c4f69' cerulean = "#147eb3"
subtext1 = '#5c5f77' turquoise = "#00a396"
subtext0 = '#6c6f85' forest = "#29a634"
overlay2 = '#7c7f93' lime = "#8eb125"
overlay1 = '#8c8fa1' gold = "#d1980b"
overlay0 = '#9ca0b0' sepia = "#946638"
surface2 = '#acb0be'
surface1 = '#bcc0cc'
surface0 = '#ccd0da'
base = '#eff1f5'
mantle = '#e6e9ef'
crust = '#dce0e8'
contrast = '#ffffff'
[palettes.catppuccin_frappe] [palettes.milspec_dark]
rosewater = "#f2d5cf" fg = "#ffffff"
flamingo = "#eebebe" bg = "#1c2127"
pink = "#f4b8e4" gray = "#c5cbd3"
mauve = "#ca9ee6" bgGray = "#404854"
red = "#e78284" fgGray = "#d3d8de"
maroon = "#ea999c" core = "#111418"
peach = "#ef9f76" blue = "#8abbff"
yellow = "#e5c890" green = "#72ca9b"
green = "#a6d189" orange = "#fbb360"
teal = "#81c8be" red = "#fa999c"
sky = "#99d1db" vermilion = "#ff9980"
sapphire = "#85c1dc" rose = "#ff66a1"
blue = "#8caaee" violet = "#d69fd6"
lavender = "#babbf1" indigo = "#bdadff"
text = "#c6d0f5" cerulean = "#68c1ee"
subtext1 = "#b5bfe2" turquoise = "#7ae1d8"
subtext0 = "#a5adce" forest = "#62d96b"
overlay2 = "#949cbb" lime = "#d4f17e"
overlay1 = "#838ba7" gold = "#fbd065"
overlay0 = "#737994" sepia = "#d0b090"
surface2 = "#626880"
surface1 = "#51576d"
surface0 = "#414559"
base = "#303446"
mantle = "#292c3c"
crust = "#232634"
[palettes.catppuccin_macchiato]
rosewater = "#f4dbd6"
flamingo = "#f0c6c6"
pink = "#f5bde6"
mauve = "#c6a0f6"
red = "#ed8796"
maroon = "#ee99a0"
peach = "#f5a97f"
yellow = "#eed49f"
green = "#a6da95"
teal = "#8bd5ca"
sky = "#91d7e3"
sapphire = "#7dc4e4"
blue = "#8aadf4"
lavender = "#b7bdf8"
text = "#cad3f5"
subtext1 = "#b8c0e0"
subtext0 = "#a5adcb"
overlay2 = "#939ab7"
overlay1 = "#8087a2"
overlay0 = "#6e738d"
surface2 = "#5b6078"
surface1 = "#494d64"
surface0 = "#363a4f"
base = "#24273a"
mantle = "#1e2030"
crust = "#181926"
[palettes.catppuccin_mocha]
rosewater = "#f5e0dc"
flamingo = "#f2cdcd"
pink = "#f5c2e7"
mauve = "#cba6f7"
red = "#f38ba8"
maroon = "#eba0ac"
peach = "#fab387"
yellow = "#f9e2af"
green = "#a6e3a1"
teal = "#94e2d5"
sky = "#89dceb"
sapphire = "#74c7ec"
blue = "#89b4fa"
lavender = "#b4befe"
text = "#cdd6f4"
subtext1 = "#bac2de"
subtext0 = "#a6adc8"
overlay2 = "#9399b2"
overlay1 = "#7f849c"
overlay0 = "#6c7086"
surface2 = "#585b70"
surface1 = "#45475a"
surface0 = "#313244"
base = "#1e1e2e"
mantle = "#181825"
crust = "#11111b"

View file

@ -90,7 +90,6 @@ in
astro-build.astro-vscode astro-build.astro-vscode
bashmish.es6-string-css bashmish.es6-string-css
bradlc.vscode-tailwindcss bradlc.vscode-tailwindcss
catppuccin.catppuccin-vsc-icons
charliermarsh.ruff charliermarsh.ruff
dbaeumer.vscode-eslint dbaeumer.vscode-eslint
denoland.vscode-deno denoland.vscode-deno

View file

@ -24,9 +24,9 @@
"editor.fontSize": 15, "editor.fontSize": 15,
"editor.inlayHints.fontSize": 8, "editor.inlayHints.fontSize": 8,
"terminal.integrated.fontSize": 14, "terminal.integrated.fontSize": 14,
"editor.fontFamily": "Berkeley Mono, Symbols Nerd Font, monospace", "editor.fontFamily": "Cascadia Code, Symbols Nerd Font, monospace",
// Use these with Cascadia Code for cursive // Use these with Cascadia Code for cursive
// "editor.fontLigatures": "'calt', 'ss01'", "editor.fontLigatures": "'calt', 'ss01'",
"markdown.preview.fontFamily": "IBM Plex Sans, sans-serif", "markdown.preview.fontFamily": "IBM Plex Sans, sans-serif",
// disable updates // disable updates
@ -39,7 +39,6 @@
"window.commandCenter": false, "window.commandCenter": false,
"window.titleBarStyle": "custom", "window.titleBarStyle": "custom",
"workbench.colorTheme": "Catppuccin Mocha", "workbench.colorTheme": "Catppuccin Mocha",
"workbench.iconTheme": "catppuccin-mocha",
"workbench.layoutControl.enabled": false, "workbench.layoutControl.enabled": false,
"workbench.preferredDarkColorTheme": "Catppuccin Mocha", "workbench.preferredDarkColorTheme": "Catppuccin Mocha",
"workbench.preferredLightColorTheme": "Catppuccin Latte", "workbench.preferredLightColorTheme": "Catppuccin Latte",

View file

@ -24,7 +24,7 @@ in
recursive = true; recursive = true;
}; };
"wezterm/bar".source = srcs.nekowinston-wezterm-bar.src; "wezterm/bar".source = srcs.nekowinston-wezterm-bar.src;
"wezterm/catppuccin".source = srcs.catppuccin-wezterm.src; "wezterm/milspec".source = srcs.milspec.src + "/extras/wezterm";
}; };
}) })
]; ];

View file

@ -6,16 +6,20 @@ require("config.keys").apply(c)
c.font = wezterm.font_with_fallback({ c.font = wezterm.font_with_fallback({
"Berkeley Mono", "Berkeley Mono",
-- "Cascadia Code",
"Symbols Nerd Font", "Symbols Nerd Font",
}) })
c.front_end = "WebGpu" c.front_end = "WebGpu"
c.font_size = 13 c.font_size = 13
c.harfbuzz_features = { "calt=1", "ss01=1" } -- c.harfbuzz_features = { "calt=1", "ss01=1" }
c.command_palette_font_size = c.font_size * 1.1 c.command_palette_font_size = c.font_size * 1.1
c.window_frame = { c.window_frame = {
font = wezterm.font("IBM Plex Sans"), font = wezterm.font("IBM Plex Sans"),
} }
-- c.window_background_opacity = 0.85
-- c.macos_window_background_blur = 20
c.window_decorations = "RESIZE|INTEGRATED_BUTTONS" c.window_decorations = "RESIZE|INTEGRATED_BUTTONS"
c.window_padding = { left = 0, right = 0, top = 50, bottom = 0 } c.window_padding = { left = 0, right = 0, top = 50, bottom = 0 }
c.adjust_window_size_when_changing_font_size = false c.adjust_window_size_when_changing_font_size = false
@ -28,6 +32,33 @@ if utils.is_darwin() then
require("bar.plugin").apply_to_config(c) require("bar.plugin").apply_to_config(c)
end end
require("catppuccin.plugin").apply_to_config(c, { sync = true }) c.use_fancy_tab_bar = false
c.tab_bar_at_bottom = true
require("milspec.plugin").apply_to_config(c, { sync = true })
-- folke/zen-mode.nvim
wezterm.on("user-var-changed", function(window, pane, name, value)
local overrides = window:get_config_overrides() or {}
if name == "ZEN_MODE" then
local incremental = value:find("+")
local number_value = tonumber(value)
if incremental ~= nil then
while number_value > 0 do
window:perform_action(wezterm.action.IncreaseFontSize, pane)
number_value = number_value - 1
end
overrides.enable_tab_bar = false
elseif number_value < 0 then
window:perform_action(wezterm.action.ResetFontSize, pane)
overrides.font_size = nil
overrides.enable_tab_bar = true
else
overrides.font_size = number_value
overrides.enable_tab_bar = false
end
end
window:set_config_overrides(overrides)
end)
return c return c

View file

@ -107,6 +107,4 @@ in
}; };
history.path = "${config.xdg.configHome}/zsh/history"; history.path = "${config.xdg.configHome}/zsh/history";
}; };
xdg.configFile."fsh".source = "${srcs.catppuccin-zsh-fsh.src}/themes";
} }

View file

@ -22,8 +22,6 @@ in
_1password _1password
age age
age-plugin-yubikey age-plugin-yubikey
catppuccin-catwalk
catppuccin-whiskers
deno deno
fd fd
ffmpeg ffmpeg

View file

@ -12,6 +12,8 @@
# Auto upgrade nix package and the daemon service. # Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true; services.nix-daemon.enable = true;
nix.linux-builder.enable = true;
services = { services = {
yabai = { yabai = {
enable = true; enable = true;

View file

@ -16,10 +16,7 @@ in
homebrew = { homebrew = {
enable = true; enable = true;
caskArgs.require_sha = true; caskArgs.require_sha = true;
brews = [ brews = [ "podman" ];
"podman"
"podman-compose"
];
casks = [ casks = [
"1password" "1password"
(skipSha "affinity-designer") (skipSha "affinity-designer")

View file

@ -1,18 +1,14 @@
[catppuccin-bat] [catppuccin-bat]
src.git = "https://github.com/catppuccin/bat" src.git = "https://github.com/catppuccin/bat"
fetch.git = "https://github.com/catppuccin/bat" fetch.github = "catppuccin/bat"
[catppuccin-wezterm] [milspec]
src.git = "https://github.com/catppuccin/wezterm" src.git = "https://github.com/nekowinston/milspec.nvim"
fetch.git = "https://github.com/catppuccin/wezterm" fetch.github = "nekowinston/milspec.nvim"
[catppuccin-zsh-fsh]
src.git = "https://github.com/catppuccin/zsh-fsh"
fetch.git = "https://github.com/catppuccin/zsh-fsh"
[nekowinston-wezterm-bar] [nekowinston-wezterm-bar]
src.git = "https://github.com/nekowinston/wezterm-bar" src.git = "https://github.com/nekowinston/wezterm-bar"
fetch.git = "https://github.com/nekowinston/wezterm-bar" fetch.github = "nekowinston/wezterm-bar"
[yabai] [yabai]
src.github = "koekeishiya/yabai" src.github = "koekeishiya/yabai"
@ -20,4 +16,4 @@ fetch.url = "https://github.com/koekeishiya/yabai/releases/download/$ver/yabai-$
[zsh-fast-syntax-highlighting] [zsh-fast-syntax-highlighting]
src.git = "https://github.com/zdharma-continuum/fast-syntax-highlighting" src.git = "https://github.com/zdharma-continuum/fast-syntax-highlighting"
fetch.git = "https://github.com/zdharma-continuum/fast-syntax-highlighting" fetch.github = "zdharma-continuum/fast-syntax-highlighting"

View file

@ -1,7 +1,5 @@
{ inputs }: { inputs }:
[ [
inputs.catppuccin-toolbox.overlays.default
inputs.catppuccin-vsc.overlays.default
inputs.nix-vscode-extensions.overlays.default inputs.nix-vscode-extensions.overlays.default
( (
final: prev: final: prev: