Mako : Use nix color.

This commit is contained in:
Dmitry Voronin 2024-04-02 22:54:00 +03:00
parent cea736df63
commit e51472de4b
7 changed files with 14 additions and 11 deletions

View file

@ -126,7 +126,7 @@
transparent = "ffffff00";
accent_rgb = "184;187;38";
fg_2_rgb = "213;196;161";
fg_3_rgb = "168;153;132";
negative_rgb = "204;36;29";
neutral_1_rgb = "69;133;136";
positive_1_rgb = "135;175;135";

View file

@ -37,7 +37,7 @@ function __prompt_command() {
fi
# Add time.
PS1+="$(__prompt_color ${fg_2_rgb})"
PS1+="$(__prompt_color ${fg_3_rgb})"
PS1+="$(date +%H:%M) "
# Set root red.
@ -79,7 +79,7 @@ function __prompt_command() {
# Command on new line.
PS1+="\n"
PS1+="$(__prompt_color ${fg_2_rgb})"
PS1+="$(__prompt_color ${fg_3_rgb})"
# Show nix shell name.
if [ -n "${NIX_SHELL}" ]; then

View file

@ -1,6 +1,7 @@
{ const, ... }: {
{ const, color, ... }: {
imports = [
(import ./Default.nix {
color = color;
const = const;
username = "dasha";
homeDir = "/home/dasha";

View file

@ -1,4 +1,4 @@
{ const, username, homeDir, ... }: {
{ const, username, homeDir, color, ... }: {
home-manager.backupFileExtension = "old";
home-manager.users.${username} = {
@ -13,7 +13,10 @@
".config/gtk-3.0".source = ./module/gtk/3;
".config/gtk-4.0".source = ./module/gtk/4;
".config/htop".source = ./module/top/htop;
".config/mako".source = ./module/mako;
".config/mako/config".text = ''${builtins.readFile ./module/mako/config}
background-color=#${color.bg}
border-color=#${color.accent}
text-color=#${color.fg}'';
".editorconfig".source = ./module/Editorconfig;
".parallel/will-cite".text = "";
"media/template".source = ./module/template;

View file

@ -1,6 +1,7 @@
{ const, ... }: {
{ const, color, ... }: {
imports = [
(import ./Default.nix {
color = color;
const = const;
username = "root";
homeDir = "/root";

View file

@ -1,6 +1,7 @@
{ const, ... }: {
{ const, color, ... }: {
imports = [
(import ./Default.nix {
color = color;
const = const;
username = "voronind";
homeDir = "/home/voronind";

View file

@ -1,10 +1,7 @@
anchor=top-center
background-color=#1d2021
border-color=#b8bb26
default-timeout=5000
font="SF Pro Display" Medium 14
height=120
icons=0
margin=32
text-color=#ebdbb2
width=480