add: starship conf
This commit is contained in:
@@ -15,3 +15,8 @@ post_hook = "hyprctl reload"
|
|||||||
input_path = "~/.config/matugen/templates/waybar"
|
input_path = "~/.config/matugen/templates/waybar"
|
||||||
output_path = "~/.config/waybar/matugen.css"
|
output_path = "~/.config/waybar/matugen.css"
|
||||||
post_hook = "killall -SIGUSR2 .waybar-wrapped"
|
post_hook = "killall -SIGUSR2 .waybar-wrapped"
|
||||||
|
|
||||||
|
[templates.starship]
|
||||||
|
input_path = "~/.config/matugen/templates/starship"
|
||||||
|
output_path = "~/.config/starship.toml"
|
||||||
|
|
||||||
|
|||||||
@@ -14,5 +14,6 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
programs.ghostty.settings.theme = "matugen";
|
programs.ghostty.settings.theme = "matugen";
|
||||||
|
programs.starship.enable = true;
|
||||||
wayland.windowManager.hyprland.settings.source = ["./matugen.conf"];
|
wayland.windowManager.hyprland.settings.source = ["./matugen.conf"];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,49 @@
|
|||||||
|
format = """
|
||||||
|
[](surface0)$os$directory[](fg:surface0 bg:peach)$git_branch$git_status[](fg:peach bg:surface1)$c$rust$nodejs$python$golang[](fg:surface1 bg:surface0)$nix_shell[](surface0)
|
||||||
|
$character"""
|
||||||
|
|
||||||
|
palette = 'colors'
|
||||||
|
|
||||||
|
[palettes.colors]
|
||||||
|
mustard = '#af8700' # example
|
||||||
|
color1 = '{{colors.primary_fixed_dim.default.hex}}'
|
||||||
|
color2 = '{{colors.on_primary.default.hex}}'
|
||||||
|
color3 = '{{colors.on_surface_variant.default.hex}}'
|
||||||
|
color4 = '{{colors.surface_container.default.hex}}'
|
||||||
|
color5 = '{{colors.on_primary.default.hex}}'
|
||||||
|
color6 = '{{colors.surface_dim.default.hex}}'
|
||||||
|
color7 = '{{colors.surface.default.hex}}'
|
||||||
|
color8 = '{{colors.primary.default.hex}}'
|
||||||
|
color9 = '{{colors.tertiary.default.hex}}'
|
||||||
|
|
||||||
|
[os]
|
||||||
|
disabled = false
|
||||||
|
format = "[$symbol]($style)"
|
||||||
|
style = "bg:surface0 fg:text"
|
||||||
|
|
||||||
|
[os.symbols]
|
||||||
|
NixOS = " "
|
||||||
|
|
||||||
|
[directory]
|
||||||
|
style = "bg:surface0 fg:lavender"
|
||||||
|
format = "[ $path ]($style)"
|
||||||
|
truncation_length = 3
|
||||||
|
truncation_symbol = "…/"
|
||||||
|
|
||||||
|
[git_branch]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:peach fg:surface0"
|
||||||
|
format = "[[ $symbol $branch ]($style)]($style)"
|
||||||
|
|
||||||
|
[git_status]
|
||||||
|
style = "bg:peach fg:surface0"
|
||||||
|
format = "[[($all_status$ahead_behind )]($style)]($style)"
|
||||||
|
|
||||||
|
[nix_shell]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:surface0 fg:sapphire"
|
||||||
|
format = "[ $symbol $state ]($style)"
|
||||||
|
|
||||||
|
[character]
|
||||||
|
success_symbol = "[](bold green)"
|
||||||
|
error_symbol = "[](bold red)"
|
||||||
+8
-15
@@ -2,25 +2,18 @@
|
|||||||
programs.starship = {
|
programs.starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
# Pro layout: one-line, clear spacing
|
|
||||||
format = ''
|
format = ''
|
||||||
[](surface0)$os$directory[](fg:surface0 bg:peach)$git_branch$git_status[](fg:peach bg:surface1)$c$rust$nodejs$python$golang[](fg:surface1 bg:surface0)$nix_shell[](surface0)
|
[](surface0)$os$directory[](fg:surface0 bg:peach)$git_branch$git_status[](fg:peach bg:surface1)$c$rust$nodejs$python$golang[](fg:surface1 bg:surface0)$nix_shell[](surface0)
|
||||||
$character'';
|
$character'';
|
||||||
|
|
||||||
# Palette definition (Catppuccin Mocha-inspired)
|
palette = "catppuccin";
|
||||||
# Tell Starship to use the palette Stylix is already generating
|
palettes.catppuccin = {
|
||||||
palette = "base16";
|
surface0 = "#313244";
|
||||||
|
surface1 = "#45475a";
|
||||||
# Map your custom names to Stylix/Base16 colors
|
peach = "#fab387";
|
||||||
# Stylix colors are available at: config.lib.stylix.colors.withHashtag.base0X
|
lavender = "#b4befe";
|
||||||
palettes.base16 = {
|
sapphire = "#74c7ec";
|
||||||
# Using standard Catppuccin/Base16 mapping
|
text = "#cdd6f4";
|
||||||
surface0 = "${config.lib.stylix.colors.withHashtag.base00}"; # Darkest BG
|
|
||||||
surface1 = "${config.lib.stylix.colors.withHashtag.base01}"; # Slightly lighter BG
|
|
||||||
text = "${config.lib.stylix.colors.withHashtag.base05}"; # Main Text
|
|
||||||
peach = "${config.lib.stylix.colors.withHashtag.base09}"; # Orange accent
|
|
||||||
lavender = "${config.lib.stylix.colors.withHashtag.base0E}"; # Purple accent
|
|
||||||
sapphire = "${config.lib.stylix.colors.withHashtag.base0C}"; # Cyan accent
|
|
||||||
};
|
};
|
||||||
os = {
|
os = {
|
||||||
disabled = false;
|
disabled = false;
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
../../apps/yazi/home.nix
|
../../apps/yazi/home.nix
|
||||||
../../apps/gemini/home.nix
|
../../apps/gemini/home.nix
|
||||||
../../apps/firefox/home.nix
|
../../apps/firefox/home.nix
|
||||||
../../apps/starship/home.nix
|
# ../../apps/starship/home.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user