Android : Use nix color.

This commit is contained in:
Dmitry Voronin 2024-04-03 00:00:40 +03:00
parent ae1ac52bb1
commit d2693febd9
3 changed files with 11 additions and 11 deletions

View file

@ -128,8 +128,8 @@
accent_rgb = "184;187;38"; accent_rgb = "184;187;38";
fg_3_rgb = "168;153;132"; fg_3_rgb = "168;153;132";
negative_rgb = "204;36;29"; negative_rgb = "204;36;29";
neutral_1_rgb = "69;133;136"; neutral_rgb = "69;133;136";
positive_1_rgb = "135;175;135"; positive_rgb = "135;175;135";
}; };
# Common modules used across all hosts. # Common modules used across all hosts.

View file

@ -57,8 +57,8 @@ in {
cp ${pkgs.nerdfonts.override { fonts = [ "Terminus" ]; }}/share/fonts/truetype/NerdFonts/TerminessNerdFontMono-Regular.ttf $out cp ${pkgs.nerdfonts.override { fonts = [ "Terminus" ]; }}/share/fonts/truetype/NerdFonts/TerminessNerdFontMono-Regular.ttf $out
''; '';
".termux/_colors.properties".text = '' ".termux/_colors.properties".text = ''
background=#1d2021 background=#${bg}
foreground=#ebdbb2 foreground=#${fg}
''; '';
}; };
home.sessionVariables = { home.sessionVariables = {

View file

@ -44,12 +44,12 @@ function __prompt_command() {
if ${is_root}; then if ${is_root}; then
PS1+="$(__prompt_color ${negative_rgb})" PS1+="$(__prompt_color ${negative_rgb})"
else else
PS1+="$(__prompt_color ${neutral_1_rgb})" PS1+="$(__prompt_color ${neutral_rgb})"
fi fi
# Add user, host and working dir. # Add user, host and working dir.
PS1+="\u@\h " PS1+="\u@\h "
PS1+="$(__prompt_color ${positive_1_rgb})" PS1+="$(__prompt_color ${positive_rgb})"
PS1+="\w" PS1+="\w"
# PS1+="\${PWD}" # PS1+="\${PWD}"