feat: Add polybar

This commit is contained in:
2024-10-14 20:39:34 +11:00
parent effbd481e5
commit 67c7567f71
4 changed files with 250 additions and 10 deletions

View File

@@ -22,10 +22,12 @@
"type": "python",
"style": "plain",
"foreground": "yellow",
"template": "<{{ if .Root }}lightBlue{{ else }}green{{ end }}>-[</>\ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }}{{ end }}{{ .Full }}{{ end }}<{{ if .Root }}lightBlue{{ else }}green{{ end }}>]</>",
"template": "<{{ if .Root }}lightBlue{{ else }}green{{ end }}>-[</> {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}(v{{ .Full }}){{ end }}<{{ if .Root }}lightBlue{{ else }}green{{ end }}>]</>",
"properties": {
"fetch_version": false,
"fetch_virtual_env": true
"fetch_version": true,
"fetch_virtual_env": true,
"display_version": true,
"display_mode": "context"
}
},
{
@@ -56,12 +58,13 @@
"foreground": "white",
"template": " {{ .FormattedMs }} ",
"properties": {
"always_enabled": true,
"always_enabled": false,
"threshold": 50,
"style": "round"
}
},
{
"type": "exit",
"type": "executiontime",
"style": "plain",
"foreground": "green",
"foreground_templates": [
@@ -69,7 +72,8 @@
],
"template": " {{ if gt .Code 0 }}\u2a2f{{else}}✓{{ end }} ",
"properties": {
"always_enabled": true
"always_enabled": false,
"threshold": 50
}
}
]
@@ -88,4 +92,4 @@
"newline": true
}
]
}
}