From 2e0dfc4322f1c42c686e93d5f9c4b4972bcb4cbc Mon Sep 17 00:00:00 2001 From: pika Date: Sat, 17 Aug 2024 23:30:43 +0200 Subject: [PATCH] addet final colors --- amro.toml | 118 +++++++++++++++++++++++++++++++++++------------------- 1 file changed, 77 insertions(+), 41 deletions(-) diff --git a/amro.toml b/amro.toml index cb4bd92..5f18a0d 100644 --- a/amro.toml +++ b/amro.toml @@ -27,17 +27,17 @@ alignment = "left" type = "prompt" [[blocks.segments]] -foreground = "#45F1C2" +foreground = "p:terminal-magenta" style = "plain" template = " {{ .UserName }}" type = "session" [[blocks.segments]] -foreground = "red" +foreground = "p:terminal-black" style = "plain" template = "󰁥 " type = "text" [[blocks.segments]] -foreground = "#45F1C2" +foreground = "p:terminal-magenta" style = "plain" template = " {{ .HostName }} " type = "session" @@ -48,7 +48,7 @@ alignment = "left" type = "prompt" [[blocks.segments]] -foreground = "#0CA0D8" +foreground = "p:blue-black" style = "plain" template = " {{ .Path }} " type = "path" @@ -77,50 +77,86 @@ style = "plain" foreground = "p:terminal-red" template = " " -[properties] -fetch_status = true -fetch_upstream_icon = true -source = "cli" -[properties.mapped_branches] -"feat/*" = "🚀 " -"bug/*" = "🐛 " -"main/*" = "💎 " -"dev/*" = "⚙️ " -# foreground = "#915ada" -# powerline_symbol = "" -# style = "plain" -# # template = "{{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }}  {{ .StashCount }}{{ end }} " -# template = ' {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }} {{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}' -# type = "git" [blocks.segments.properties] fetch_stash_count = true fetch_upstream_icon = true + +[[blocks]] +alignment = "right" +overflow = "hide" +type = "prompt" + +[[blocks.segments]] +type = "node" +style = "plain" +foreground = "p:pistachio-green" +template = " {{ .Full }} " + +[[blocks.segments]] +type = "php" +style = "plain" +foreground = "p:terminal-blue" +template = " {{ .Full }} " + +[[blocks.segments]] +type = "python" +style = "plain" +foreground = "p:terminal-yellow" +template = " {{ .Full }}" + +[[blocks.segments]] +type = "julia" +style = "plain" +foreground = "p:terminal-magenta" +template = " {{ .Full }}" + +[[blocks.segments]] +type = "ruby" +style = "plain" +foreground = "p:terminal-red" +template = " {{ .Full}}" + +[[blocks.segments]] +type = "go" +style = "plain" +foreground = "p:light-sky-blue" +template = "ﳑ {{ .Full}}" + +[[blocks.segments]] +type = "command" +style = "plain" +foreground = "p:white-blue" + + [blocks.segments.properties] +command = "git log --pretty=format:%cr -1 || date +%H:%M:%S" +shell = "bash" + [[blocks]] alignment = "left" newline = true type = "prompt" -[[blocks.segments]] -foreground = "#cd5e42" -style = "plain" -template = " " -type = "root" -[[blocks.segments]] -foreground = "#CD4277" -style = "plain" -template = "# " -type = "text" -[[blocks]] -alignment = "left" -type = "plain" -[transient_prompt] -background = 'transparent' -foreground = 'magenta' -template = "" -# template = '>' -type = "prompt" +[[blocks.segments]] +style = "plain" foreground_templates = [ - "{{if gt .Code 0}}red{{end}}", - "{{if eq .Code 0}}green{{end}}", + "{{if gt .Code 0}}p:terminal-red{{end}}", + "{{if eq .Code 0}}p:pistachio-green{{end}}", ] -# # foreground = "p:terminal-blue" +template = "" +type = "text" +newline = true + +[secondary_prompt] +background = "transparent" +foreground = "p:terminal-blue" +template = "" + +[transient_prompt] +type = "status" +background = "transparent" +foreground_templates = [ + "{{if gt .Code 0}}terminal-red{{end}}", + "{{if eq .Code 0}}p:pistachio-green{{end}}", +] +# foreground = "p:terminal-blue" +template = ""