fix(home/starship): Fix colors
This commit is contained in:
parent
0caf18c32c
commit
e5ec3cad8c
1 changed files with 38 additions and 50 deletions
|
@ -8,8 +8,8 @@
|
||||||
cfg = config.marleyos.programs.starship;
|
cfg = config.marleyos.programs.starship;
|
||||||
in {
|
in {
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
programs.starship.settings = let
|
programs.starship.settings = with config.lib.stylix.colors.withHashtag; let
|
||||||
mkFormat = t: " [](fg:base02)[${t}]($style)[](fg:base02) ";
|
mkFormat = t: " [](fg:${base02})[${t}]($style)[](fg:${base02}) ";
|
||||||
langFormat = mkFormat "$symbol$version";
|
langFormat = mkFormat "$symbol$version";
|
||||||
in {
|
in {
|
||||||
format = mkDefault (lib.concatStrings [
|
format = mkDefault (lib.concatStrings [
|
||||||
|
@ -36,29 +36,17 @@ in {
|
||||||
"$character"
|
"$character"
|
||||||
]);
|
]);
|
||||||
|
|
||||||
palettes.default = with config.lib.stylix.colors.withHashtag; mkDefault {
|
|
||||||
base02 = base02;
|
|
||||||
base08 = base08;
|
|
||||||
base09 = base09;
|
|
||||||
base0A = base0A;
|
|
||||||
base0B = base0B;
|
|
||||||
base0C = base0C;
|
|
||||||
base0D = base0D;
|
|
||||||
};
|
|
||||||
|
|
||||||
palette = "default";
|
|
||||||
|
|
||||||
username = {
|
username = {
|
||||||
disabled = mkDefault false;
|
disabled = mkDefault false;
|
||||||
format = mkDefault (mkFormat " $user ");
|
format = mkDefault (mkFormat " $user ");
|
||||||
show_always = mkDefault true;
|
show_always = mkDefault true;
|
||||||
style_root = mkDefault "bg:base02 fg:base0D";
|
style_root = mkDefault "bg:${base02} fg:${base0D}";
|
||||||
style_user = mkDefault "bg:base02 fg:base0D";
|
style_user = mkDefault "bg:${base02} fg:${base0D}";
|
||||||
};
|
};
|
||||||
|
|
||||||
directory = {
|
directory = {
|
||||||
format = mkDefault (mkFormat " $path ");
|
format = mkDefault (mkFormat " $path ");
|
||||||
style = mkDefault "bg:base02 fg:base0B";
|
style = mkDefault "bg:${base02} fg:${base0B}";
|
||||||
truncation_length = mkDefault 3;
|
truncation_length = mkDefault 3;
|
||||||
truncation_symbol = mkDefault "…/";
|
truncation_symbol = mkDefault "…/";
|
||||||
|
|
||||||
|
@ -72,123 +60,123 @@ in {
|
||||||
|
|
||||||
git_branch = {
|
git_branch = {
|
||||||
format = mkDefault (mkFormat " $symbol $branch ");
|
format = mkDefault (mkFormat " $symbol $branch ");
|
||||||
style = mkDefault "bg:base02 fg:base0C";
|
style = mkDefault "bg:${base02} fg:${base0C}";
|
||||||
symbol = mkDefault "";
|
symbol = mkDefault "";
|
||||||
};
|
};
|
||||||
|
|
||||||
git_status = {
|
git_status = {
|
||||||
disabled = mkDefault false;
|
disabled = mkDefault false;
|
||||||
style = mkDefault "bg:base02 fg:base08";
|
style = mkDefault "bg:${base02} fg:${base08}";
|
||||||
format = mkDefault (mkFormat " $all_status$ahead_behind");
|
format = mkDefault (mkFormat " $all_status$ahead_behind");
|
||||||
up_to_date = mkDefault "[ ✓ ](bg:base02 fg:base0D)";
|
up_to_date = mkDefault "[ ✓ ](bg:${base02} fg:${base0D})";
|
||||||
untracked = mkDefault "[?\\($count\\)](bg:base02 fg:base09)";
|
untracked = mkDefault "[?\\($count\\)](bg:${base02} fg:${base09})";
|
||||||
stashed = mkDefault "[\\$](bg:base02 fg:base0D)";
|
stashed = mkDefault "[\\$](bg:${base02} fg:${base0D})";
|
||||||
modified = mkDefault "[!\\($count\\)](bg:base02 fg:base09)";
|
modified = mkDefault "[!\\($count\\)](bg:${base02} fg:${base09})";
|
||||||
renamed = mkDefault "[»\\($count\\)](bg:base02 fg:base0D)";
|
renamed = mkDefault "[»\\($count\\)](bg:${base02} fg:${base0D})";
|
||||||
deleted = mkDefault "[✘\\($count\\)](style)";
|
deleted = mkDefault "[✘\\($count\\)](style)";
|
||||||
staged = mkDefault "[++\\($count\\)](bg:base02 fg:base09)";
|
staged = mkDefault "[++\\($count\\)](bg:${base02} fg:${base09})";
|
||||||
ahead = mkDefault "[⇡\\(\${count}\\)](bg:base02 fg:base0C)";
|
ahead = mkDefault "[⇡\\(\${count}\\)](bg:${base02} fg:${base0C})";
|
||||||
diverged = mkDefault "⇕[\\[](bg:base02 fg:base0D)[⇡\\(\${ahead_count}\\)](bg:base02 fg:base0C)[⇣\\(\${behind_count}\\)](bg:base02 fg:base0A)[\\]](bg:base02 fg:base0D)";
|
diverged = mkDefault "⇕[\\[](bg:${base02} fg:${base0D})[⇡\\(\${ahead_count}\\)](bg:${base02} fg:${base0C})[⇣\\(\${behind_count}\\)](bg:${base02} fg:${base0A})[\\]](bg:${base02} fg:${base0D})";
|
||||||
behind = mkDefault "[⇣\\(\${count}\\)](bg:base02 fg:base0A)";
|
behind = mkDefault "[⇣\\(\${count}\\)](bg:${base02} fg:${base0A})";
|
||||||
};
|
};
|
||||||
|
|
||||||
fill = {
|
fill = {
|
||||||
style = mkDefault "fg:base02";
|
style = mkDefault "fg:${base02}";
|
||||||
symbol = mkDefault " ";
|
symbol = mkDefault " ";
|
||||||
};
|
};
|
||||||
|
|
||||||
time = {
|
time = {
|
||||||
disabled = mkDefault false;
|
disabled = mkDefault false;
|
||||||
format = mkDefault (mkFormat " $time ");
|
format = mkDefault (mkFormat " $time ");
|
||||||
style = mkDefault "bg:base02 fg:base0A";
|
style = mkDefault "bg:${base02} fg:${base0A}";
|
||||||
time_format = mkDefault "%I:%M%P";
|
time_format = mkDefault "%I:%M%P";
|
||||||
use_12hr = mkDefault true;
|
use_12hr = mkDefault true;
|
||||||
};
|
};
|
||||||
|
|
||||||
character = let
|
character = let
|
||||||
vim = "";
|
vim = "";
|
||||||
mkChar = sym: col: " [${sym}](fg:${col}) [](fg:base0C)";
|
mkChar = sym: col: " [${sym}](fg:${col}) [](fg:${base0C})";
|
||||||
in {
|
in {
|
||||||
success_symbol = mkChar "" "base0D";
|
success_symbol = mkChar "" "${base0D}";
|
||||||
error_symbol = mkChar "" "base08";
|
error_symbol = mkChar "" "${base08}";
|
||||||
vimcmd_symbol = mkChar vim "base0A";
|
vimcmd_symbol = mkChar vim "${base0A}";
|
||||||
vimcmd_replace_one_symbol = mkChar vim "base0C";
|
vimcmd_replace_one_symbol = mkChar vim "${base0C}";
|
||||||
vimcmd_replace_symbol = mkChar vim "base0C";
|
vimcmd_replace_symbol = mkChar vim "${base0C}";
|
||||||
vimcmd_visual_symbol = mkChar vim "base0D";
|
vimcmd_visual_symbol = mkChar vim "${base0D}";
|
||||||
};
|
};
|
||||||
|
|
||||||
### Languages ###
|
### Languages ###
|
||||||
c = {
|
c = {
|
||||||
style = mkDefault "bg:base02 fg:base0B";
|
style = mkDefault "bg:${base02} fg:${base0B}";
|
||||||
format = mkDefault langFormat;
|
format = mkDefault langFormat;
|
||||||
disabled = mkDefault false;
|
disabled = mkDefault false;
|
||||||
symbol = mkDefault " ";
|
symbol = mkDefault " ";
|
||||||
};
|
};
|
||||||
|
|
||||||
elixir = {
|
elixir = {
|
||||||
style = mkDefault "bg:base02 fg:base0B";
|
style = mkDefault "bg:${base02} fg:${base0B}";
|
||||||
format = mkDefault langFormat;
|
format = mkDefault langFormat;
|
||||||
disabled = mkDefault false;
|
disabled = mkDefault false;
|
||||||
symbol = mkDefault " ";
|
symbol = mkDefault " ";
|
||||||
};
|
};
|
||||||
|
|
||||||
elm = {
|
elm = {
|
||||||
style = mkDefault "bg:base02 fg:base0B";
|
style = mkDefault "bg:${base02} fg:${base0B}";
|
||||||
format = mkDefault langFormat;
|
format = mkDefault langFormat;
|
||||||
disabled = mkDefault false;
|
disabled = mkDefault false;
|
||||||
symbol = mkDefault " ";
|
symbol = mkDefault " ";
|
||||||
};
|
};
|
||||||
|
|
||||||
haskell = {
|
haskell = {
|
||||||
style = mkDefault "bg:base02 fg:base0B";
|
style = mkDefault "bg:${base02} fg:${base0B}";
|
||||||
format = mkDefault langFormat;
|
format = mkDefault langFormat;
|
||||||
disabled = mkDefault false;
|
disabled = mkDefault false;
|
||||||
symbol = mkDefault " ";
|
symbol = mkDefault " ";
|
||||||
};
|
};
|
||||||
|
|
||||||
java = {
|
java = {
|
||||||
style = mkDefault "bg:base02 fg:base0B";
|
style = mkDefault "bg:${base02} fg:${base0B}";
|
||||||
format = mkDefault langFormat;
|
format = mkDefault langFormat;
|
||||||
disabled = mkDefault false;
|
disabled = mkDefault false;
|
||||||
symbol = mkDefault " ";
|
symbol = mkDefault " ";
|
||||||
};
|
};
|
||||||
|
|
||||||
julia = {
|
julia = {
|
||||||
style = mkDefault "bg:base02 fg:base0B";
|
style = mkDefault "bg:${base02} fg:${base0B}";
|
||||||
format = mkDefault langFormat;
|
format = mkDefault langFormat;
|
||||||
disabled = mkDefault false;
|
disabled = mkDefault false;
|
||||||
symbol = mkDefault " ";
|
symbol = mkDefault " ";
|
||||||
};
|
};
|
||||||
|
|
||||||
nodejs = {
|
nodejs = {
|
||||||
style = mkDefault "bg:base02 fg:base0B";
|
style = mkDefault "bg:${base02} fg:${base0B}";
|
||||||
format = mkDefault langFormat;
|
format = mkDefault langFormat;
|
||||||
disabled = mkDefault false;
|
disabled = mkDefault false;
|
||||||
symbol = mkDefault " ";
|
symbol = mkDefault " ";
|
||||||
};
|
};
|
||||||
|
|
||||||
nim = {
|
nim = {
|
||||||
style = mkDefault "bg:base02 fg:base0B";
|
style = mkDefault "bg:${base02} fg:${base0B}";
|
||||||
format = mkDefault langFormat;
|
format = mkDefault langFormat;
|
||||||
disabled = mkDefault false;
|
disabled = mkDefault false;
|
||||||
symbol = mkDefault " ";
|
symbol = mkDefault " ";
|
||||||
};
|
};
|
||||||
|
|
||||||
python = {
|
python = {
|
||||||
style = mkDefault "bg:base02 fg:base0B";
|
style = mkDefault "bg:${base02} fg:${base0B}";
|
||||||
disabled = mkDefault false;
|
disabled = mkDefault false;
|
||||||
symbol = mkDefault " ";
|
symbol = mkDefault " ";
|
||||||
};
|
};
|
||||||
|
|
||||||
rust = {
|
rust = {
|
||||||
style = mkDefault "bg:base02 fg:base0B";
|
style = mkDefault "bg:${base02} fg:${base0B}";
|
||||||
format = mkDefault langFormat;
|
format = mkDefault langFormat;
|
||||||
disabled = mkDefault false;
|
disabled = mkDefault false;
|
||||||
symbol = mkDefault "";
|
symbol = mkDefault "";
|
||||||
};
|
};
|
||||||
|
|
||||||
scala = {
|
scala = {
|
||||||
style = "bg:base02 fg:base0B";
|
style = "bg:${base02} fg:${base0B}";
|
||||||
format = mkDefault langFormat;
|
format = mkDefault langFormat;
|
||||||
disabled = false;
|
disabled = false;
|
||||||
symbol = " ";
|
symbol = " ";
|
||||||
|
@ -196,14 +184,14 @@ in {
|
||||||
|
|
||||||
### Tools ###
|
### Tools ###
|
||||||
conda = {
|
conda = {
|
||||||
style = mkDefault "bg:base02 fg:base0B";
|
style = mkDefault "bg:${base02} fg:${base0B}";
|
||||||
format = mkDefault (mkFormat "$symbol$environment");
|
format = mkDefault (mkFormat "$symbol$environment");
|
||||||
disabled = mkDefault false;
|
disabled = mkDefault false;
|
||||||
symbol = mkDefault "🅒 ";
|
symbol = mkDefault "🅒 ";
|
||||||
};
|
};
|
||||||
|
|
||||||
nix_shell = {
|
nix_shell = {
|
||||||
style = "bg:base02 fg:base0C";
|
style = "bg:${base02} fg:${base0C}";
|
||||||
format = mkDefault (mkFormat " $symbol $state( \($name\)) ");
|
format = mkDefault (mkFormat " $symbol $state( \($name\)) ");
|
||||||
disabled = mkDefault false;
|
disabled = mkDefault false;
|
||||||
symbol = mkDefault " ";
|
symbol = mkDefault " ";
|
||||||
|
|
Loading…
Reference in a new issue