Skip to content

Commit

Permalink
Remove folder and (most) OS icons, clean up colors
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
genebean committed Sep 13, 2023
1 parent a91b4a8 commit badf098
Showing 1 changed file with 13 additions and 23 deletions.
36 changes: 13 additions & 23 deletions modules/home-manager/files/beanbag.omp.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
{
Expand All @@ -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 }}<p:hostname>(</>WSL {{.Icon}}<p:hostname>)</>{{ end }}"
},
{
"type": "path",
"style": "plain",
"foreground": "p:pwd",
"template": " \uea83 {{ path .Path .Location }}",
"template": " {{ path .Path .Location }}",
"properties": {
"folder_separator_icon": "/",
"style": "full"
Expand All @@ -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": " <p:orange-text>(</>\uFD31 {{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}}<p:orange-text>)</>"
},
{
"type": "git",
Expand All @@ -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": " <p:orange-text>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,
Expand All @@ -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": " <p:orange-text>on svn</> \ue0a0{{.Branch}} r{{.BaseRev}}{{ if .Working.Changed }} \uf044 {{.Working.String}}{{ end }}",
"properties": {
"fetch_status": true
}
Expand Down Expand Up @@ -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 }} ",
Expand All @@ -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 }} ",
Expand Down

0 comments on commit badf098

Please sign in to comment.