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

@ -125,11 +125,11 @@
positive_1 = "87af87"; positive_1 = "87af87";
transparent = "ffffff00"; transparent = "ffffff00";
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

@ -51,14 +51,14 @@ in {
home-manager.config = { home-manager.config = {
home.stateVersion = const.droidStateVersion; home.stateVersion = const.droidStateVersion;
home.file = { home.file = {
".dotfiles".source = inputs.self; ".dotfiles".source = inputs.self;
".ssh/config".source = ./common/ssh/config; ".ssh/config".source = ./common/ssh/config;
".termux/_font.ttf".source = pkgs.runCommandNoCC "font" {} '' ".termux/_font.ttf".source = pkgs.runCommandNoCC "font" {} ''
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}"