feat: Add music player and some more git stuff

This commit is contained in:
2024-05-17 21:43:08 +10:00
parent bfe6dcb10a
commit 989ea4515f
2 changed files with 19 additions and 2 deletions

View File

@@ -42,7 +42,7 @@
"type": "git",
"style": "plain",
"foreground": "white",
"template": "<{{ if .Root }}lightBlue{{ else }}green{{ end }}>-[</>{{ .HEAD }}<{{ if .Root }}lightBlue{{ else }}green{{ end }}>]</>"
"template": "<{{ if .Root }}lightBlue{{ else }}green{{ end }}>-[</>{{ .HEAD }}<{{ if .Root }}lightBlue{{ else }}green{{ end }}>]{{if .BranchStatus }}-[{{ .BranchStatus }}]{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }}  {{ .StashCount }}]{{ end }}</>"
},
{
"type": "flutter",
@@ -57,6 +57,15 @@
"type": "prompt",
"alignment": "right",
"segments": [
{
"type": "command",
"style": "plain",
"foreground": "#340452",
"properties": {
"shell": "bash",
"command": "[ \"$(playerctl status)\" = \"Playing\" ] && echo \"$(playerctl metadata title) - $(playerctl metadata artist)\"||"
}
},
{
"type": "executiontime",
"style": "plain",