Use stylix and refactor related things
This commit is contained in:
parent
f173a43c72
commit
96dc27ff50
19 changed files with 600 additions and 397 deletions
|
|
@ -1,8 +1,4 @@
|
|||
{
|
||||
lib,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
{lib, ...}: {
|
||||
programs.starship = {
|
||||
enable = true;
|
||||
|
||||
|
|
@ -10,37 +6,33 @@
|
|||
enableZshIntegration = true;
|
||||
enableNushellIntegration = true;
|
||||
|
||||
settings =
|
||||
{
|
||||
# right_format = "$cmd_duration";
|
||||
settings = {
|
||||
# right_format = "$cmd_duration";
|
||||
|
||||
directory = {
|
||||
format = "[ ](bold #89b4fa)[ $path ]($style)";
|
||||
style = "bold #b4befe";
|
||||
};
|
||||
directory = {
|
||||
format = "[ ](bold #89b4fa)[ $path ]($style)";
|
||||
style = "bold #b4befe";
|
||||
};
|
||||
|
||||
character = {
|
||||
success_symbol = "[ ](bold #89b4fa)[ ➜](bold green)";
|
||||
error_symbol = "[ ](bold #89b4fa)[ ➜](bold red)";
|
||||
# error_symbol = "[ ](bold #89dceb)[ ✗](bold red)";
|
||||
};
|
||||
character = {
|
||||
success_symbol = "[ ](bold #89b4fa)[ ➜](bold green)";
|
||||
error_symbol = "[ ](bold #89b4fa)[ ➜](bold red)";
|
||||
# error_symbol = "[ ](bold #89dceb)[ ✗](bold red)";
|
||||
};
|
||||
|
||||
cmd_duration = {
|
||||
format = "[]($style)[[ ](bg:#161821 fg:#d4c097 bold)$duration](bg:#161821 fg:#BBC3DF)[ ]($style)";
|
||||
disabled = false;
|
||||
style = "bg:none fg:#161821";
|
||||
};
|
||||
cmd_duration = {
|
||||
format = "[]($style)[[ ](bg:#161821 fg:#d4c097 bold)$duration](bg:#161821 fg:#BBC3DF)[ ]($style)";
|
||||
disabled = false;
|
||||
style = "bg:none fg:#161821";
|
||||
};
|
||||
|
||||
# directory.substitutions = {
|
||||
# "~" = "";
|
||||
# "Documents" = " ";
|
||||
# "Downloads" = " ";
|
||||
# "Music" = " ";
|
||||
# "Pictures" = " ";
|
||||
# };
|
||||
|
||||
palette = "catppuccin_mocha";
|
||||
}
|
||||
// builtins.fromTOML (builtins.readFile "${inputs.catppuccin-starship}/themes/mocha.toml");
|
||||
# directory.substitutions = {
|
||||
# "~" = "";
|
||||
# "Documents" = " ";
|
||||
# "Downloads" = " ";
|
||||
# "Music" = " ";
|
||||
# "Pictures" = " ";
|
||||
# };
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue