From 3ea461f5e3d0e77713174a0c72c5714a367a7f52 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Mon, 1 Apr 2024 04:49:51 +0300 Subject: [PATCH] Android : Set background and foreground colors. --- module/NixOnDroid.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/module/NixOnDroid.nix b/module/NixOnDroid.nix index 18f8f76..ed08d43 100644 --- a/module/NixOnDroid.nix +++ b/module/NixOnDroid.nix @@ -55,6 +55,10 @@ in { ".termux/_font.ttf".source = pkgs.runCommandNoCC "font" {} '' cp ${pkgs.nerdfonts.override { fonts = [ "Terminus" ]; }}/share/fonts/truetype/NerdFonts/TerminessNerdFontMono-Regular.ttf $out ''; + ".termux/_colors.properties".text = '' + background=#1d2021 + foreground=#ebdbb2 + ''; }; home.sessionVariables = { BASH_PATH = ./common/bash; @@ -70,7 +74,8 @@ in { source $BASH_PATH/Bashrc.sh [[ -f ~/.termux/font.ttf ]] || { cp ~/.termux/_font.ttf ~/.termux/font.ttf - _warn "Nerd font installed, please restart." + cp ~/.termux/_colors.properties ~/.termux/colors.properties + _warn "Termux config installed, please restart." }; ''; };