PowerlineV2 - My version of Powerline #3885
Closed
harshv5094
started this conversation in
Themes
Replies: 3 comments 3 replies
-
@harshv1741 can you clarify where you want to add spacing? |
Beta Was this translation helpful? Give feedback.
3 replies
-
After some changes here is the new design for the powershellV2 inline style: On Full ScreenOn Split Screen ViewIt's a lot better now than that messy prompt 😅 |
Beta Was this translation helpful? Give feedback.
0 replies
-
New Design Code (JSON): {
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"final_space": true,
"version": 2,
"blocks": [
{
"type": "prompt",
"alignment": "left",
"newline": true,
"segments": [
{
"type": "shell",
"style": "powerline",
"powerline_symbol": "\ue0b0",
"template": " {{ .Name }} ",
"background": "#1098F7",
"foreground": "#ffffff"
},
{
"type": "root",
"style": "powerline",
"background": "#747c92",
"foreground": "#fffb38",
"properties": {
"root_icon": "\uf292"
},
"template": "<parentBackground>\ue0b0</> \uf0e7 "
},
{
"type": "path",
"style": "powerline",
"powerline_symbol": "\ue0b0",
"foreground": "#ffffff",
"background": "#401bf7",
"template": " {{ .Path }} ",
"properties": {
"style": "folder"
}
},
{
"type": "git",
"style": "powerline",
"background": "#9cec5b",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#deba6f{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#747c92{{ end }}",
"{{ if gt .Ahead 0 }}#906cff{{ end }}",
"{{ if gt .Behind 0 }}#906cff{{ end }}"
],
"foreground": "#011627",
"powerline_symbol": "\ue0b0",
"properties": {
"branch_icon": "\ue725 ",
"fetch_status": true,
"fetch_upstream_icon": true
},
"template": " {{ .HEAD }} {{ if .Working.Changed }}{{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#533a71> \uf046 {{ .Staging.String }}</>{{ end }} "
},
{
"type": "exit",
"style": "powerline",
"foreground": "#ffffff",
"background": "#7D7E75",
"background_templates": ["{{ if gt .Code 0 }}#e91e63{{ end }}"],
"powerline_symbol": "\ue0b0",
"template": "<#193549></> ",
"properties": {
"always_enabled": true
}
},
{
"foreground": "#1865f5",
"properties": {
"alpine": "\uf300",
"arch": "\uf303",
"centos": "\uf304",
"debian": "\uf306",
"elementary": "\uf309",
"fedora": "\uf30a",
"gentoo": "\uf30d",
"linux": "\ue712",
"macos": "\uf179 ",
"manjaro": "\uf312",
"mint": "\uf30f",
"opensuse": "\uf314",
"raspbian": "\uf315",
"ubuntu": "\uf31b ",
"windows": "\ue62a ",
"wsl": "\ue712"
},
"style": "diamond",
"template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}}",
"trailing_diamond": "<transparent,>\ue0b2</>",
"type": "os"
}
]
},
{
"type": "rprompt",
"segments": [
{
"type": "spotify",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#ffffff",
"background": "#1BD760",
"template": " {{ .Icon }}{{ if ne .Status \"stopped\" }}{{ .Artist }} - {{ .Track }}{{ end }} "
},
{
"type": "node",
"style": "powerline",
"background": "#303030",
"foreground": "#3C873A",
"powerline_symbol": "\ue0b0",
"properties": {
"fetch_package_manager": true,
"npm_icon": " <#cc3a3a>\ue5fa</> ",
"yarn_icon": " <#348cba>\uf61a</>"
},
"template": " \uf64f {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} "
},
{
"type": "lua",
"style": "powerline",
"powerline_symbol": "",
"foreground": "white",
"background": "#401bf7",
"template": " {{ .Full }} "
},
{
"type": "python",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#100e23",
"background": "#906cff",
"template": " {{ .Full }} "
},
{
"type": "upgrade",
"style": "plain",
"foreground": "#111111",
"background": "#FFD664"
},
{
"type": "battery",
"style": "powerline",
"powerline_symbol": "",
"foreground": "#193549",
"background": "#ffeb3b",
"background_templates": [
"{{if eq \"Charging\" .State.String}}#40c4ff{{end}}",
"{{if eq \"Discharging\" .State.String}}#ff5722{{end}}",
"{{if eq \"Full\" .State.String}}#4caf50{{end}}"
],
"template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }} ",
"properties": {
"discharging_icon": " ",
"charging_icon": " ",
"charged_icon": " "
}
}
]
}
]
}
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here is my concept of an updated powerline theme, I need some help Regarding the spacing between two lines could anyone give me some suggestions as to how I can fix this?
powerlinev2.omp.json
Beta Was this translation helpful? Give feedback.
All reactions