From badf0988a255fa5df84a3d2805859c956d7b6fa3 Mon Sep 17 00:00:00 2001 From: Gene Liverman Date: Wed, 13 Sep 2023 14:13:08 -0400 Subject: [PATCH] Remove folder and (most) OS icons, clean up colors Now, the OS icon is only rendered when in a WSL environment as it isn't that useful or easy to read the rest of the time. The folder icon was removed from the path part of the prompt because it, too, was hard to read and served no helpful purpose. Colors were cleaned up so that names are used everywhere and unused bits were removed. --- modules/home-manager/files/beanbag.omp.json | 36 ++++++++------------- 1 file changed, 13 insertions(+), 23 deletions(-) diff --git a/modules/home-manager/files/beanbag.omp.json b/modules/home-manager/files/beanbag.omp.json index b0297c6..4b5a2a7 100755 --- a/modules/home-manager/files/beanbag.omp.json +++ b/modules/home-manager/files/beanbag.omp.json @@ -17,14 +17,10 @@ "kubectl-bg": "transparent", "status-fg-okay": "#00ff00", "status-fg-error": "#D81E5B", + "tooltip-fg": "#E0DEF4", + "tooltip-az-bg": "#4B95E9", "secondary-fg": "#00ff00", - - - - "blue": "#4B95E9", - "orange": "#F07623", - "white": "#E0DEF4", - "yellow": "#F3AE35" + "orange-text": "#ff8800" }, "blocks": [ { @@ -46,24 +42,18 @@ "type": "session", "style": "plain", "foreground": "p:hostname", - "template": " {{ (split \".\" .HostName)._0 }}(" + "template": " {{ (split \".\" .HostName)._0 }}" }, { "type": "os", "style": "plain", - "template": "{{ if .WSL }}WSL {{ end }}{{.Icon}}" - }, - { - "type": "session", - "style": "plain", - "foreground": "p:hostname", - "template": "):" + "template": "{{ if .WSL }}(WSL {{.Icon}}){{ end }}" }, { "type": "path", "style": "plain", "foreground": "p:pwd", - "template": " \uea83 {{ path .Path .Location }}", + "template": " {{ path .Path .Location }}", "properties": { "folder_separator_icon": "/", "style": "full" @@ -75,7 +65,7 @@ "powerline_symbol": "\uE0B0", "foreground": "p:kubectl-fg", "background": "p:kubectl-bg", - "template": " <#ff8800>(\uFD31 {{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}}<#ff8800>)" + "template": " (\uFD31 {{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}})" }, { "type": "git", @@ -87,7 +77,7 @@ "{{ if gt .Ahead 0 }}p:git-fg-ahead{{ end }}", "{{ if gt .Behind 0 }}p:git-fg-behind{{ end }}" ], - "template": " <#ff8800>on {{ if .UpstreamURL }}{{ url .UpstreamIcon .UpstreamURL }} {{ end }}{{ url .HEAD .Kraken }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}", + "template": " on {{ if .UpstreamURL }}{{ url .UpstreamIcon .UpstreamURL }} {{ end }}{{ url .HEAD .Kraken }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}", "properties": { "branch_max_length": 25, "fetch_stash_count": true, @@ -102,7 +92,7 @@ "foreground_templates": [ "{{ if (.Working.Changed) }}p:svn-fg-changed{{ end }}" ], - "template": " <#ff8800>on svn \ue0a0{{.Branch}} r{{.BaseRev}}{{ if .Working.Changed }} \uf044 {{.Working.String}}{{ end }}", + "template": " on svn \ue0a0{{.Branch}} r{{.BaseRev}}{{ if .Working.Changed }} \uf044 {{.Working.String}}{{ end }}", "properties": { "fetch_status": true } @@ -142,8 +132,8 @@ "aws" ], "style": "diamond", - "foreground": "p:white", - "background": "p:orange", + "foreground": "p:tooltip-fg", + "background": "p:orange-text", "leading_diamond": "\ue0b0", "trailing_diamond": "\ue0b4", "template": " \ue7ad {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} ", @@ -157,8 +147,8 @@ "az" ], "style": "diamond", - "foreground": "p:white", - "background": "p:blue", + "foreground": "p:tooltip-fg", + "background": "p:tooltip-az-bg", "leading_diamond": "\ue0b0", "trailing_diamond": "\ue0b4", "template": " \uebd8 {{ .Name }} ",