Powerline symbol - transparent background #6830
Unanswered
Ctrl-Alb
asked this question in
Troubleshoot
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I would like to ask how to make the background of the first powerline symbol transparent.
My terminal background is blurred and transparent, and I would like the powerline symbol background to match it.
Instead, the powerline symbol background shows a non-transparent version of the terminal background color.
Is there a way to make it transparent so that it matches the terminal background?
I am using both Ghostty and Windows Terminal.
Here's a screenshot and my config file:
config file
{ "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", "palette": { "red": "red", "green": "green", "yellow": "yellow", "lightRed": "lightRed", "lightGreen": "lightGreen", "lightYellow": "lightYellow" }, "palettes": { "template": "{{ .Env.OMP_THEME | default \"Clear Dark\" }}", "list": { "Clear Dark": { "black": "#35424C", "blue": "#6D96B4", "magenta": "#BD7BCD", "cyan": "#7CCBCD", "white": "#DEE5EB", "brightBlack": "#465C6D", "brightBlue": "#67B5ED", "brightCyan": "#84DDE0", "brightWhite": "#E5EFF5", "backgroundColor": "#35424C" }, "Clear Light": { "black": "#2D3840", "blue": "#5685A8", "magenta": "#AD64BE", "cyan": "#69C6C9", "white": "#C1C8CC", "brightBlack": "#506573", "brightBlue": "#49A2E1", "brightCyan": "#77E1E5", "brightWhite": "#D8E1E7", "backgroundColor": "#C1C8CC" } } }, "secondary_prompt": { "template": "<p:backgroundColor,transparent>\ue0b6</><,p:backgroundColor> > </><p:backgroundColor,transparent>\ue0b0</> ", "foreground": "p:green", "background": "transparent" }, "transient_prompt": { "template": "<p:backgroundColor,transparent>\ue0b6</><,p:backgroundColor> {{ if eq .OS \"darwin\" }}\udb81\ude33 {{ else if eq .OS \"windows\" }}\udb80\udd4f {{ else if eq .OS \"debian\" }}\ue722 {{ end }} </><p:backgroundColor,transparent>\ue0b0</> ", "foreground": "p:green", "background": "transparent" }, "upgrade": { "source": "cdn", "interval": "168h", "auto": false, "notice": false }, "blocks": [ { "type": "prompt", "alignment": "left", "segments": [ { "type": "os", "style": "diamond", "leading_diamond": "\ue0b6", "trailing_diamond": "\ue0b0", "foreground": "p:green", "background": "p:backgroundColor", "template": " {{.Icon}} {{if .Root}} \udb81\ude32 {{end}}", "properties": { "macos": "\udb81\ude33", "windows": "\udb80\udd4f", "debian": "\ue722" } }, { "type": "path", "style": "powerline", "powerline_symbol": "\ue0b0", "foreground": "p:magenta", "background": "p:backgroundColor", "template": " \uea83 {{ path .Path .Location }} ", "properties": { "style": "folder" } } ] } ], "version": 3, "final_space": true }Beta Was this translation helpful? Give feedback.
All reactions