feat: Update dotfiles

This commit is contained in:
2024-07-17 15:12:40 +10:00
parent 989ea4515f
commit e1b41043cb
2 changed files with 1 additions and 27 deletions

10
.zshrc
View File

@@ -132,14 +132,4 @@ alias hcurl='curl --doh-url https://hnsdoh.com/dns-query'
alias ls='exa' alias ls='exa'
alias ll='exa --long --group --header --icons --classify' alias ll='exa --long --group --header --icons --classify'
# Music alias
alias pause="playerctl play-pause"
alias play="playerctl play"
# Next/Prev and wait a second to let the song change
alias next="playerctl next && sleep .2"
alias prev="playerctl previous && sleep .2"
alias v+="playerctl volume 1+"
alias v-="playerctl volume 1-"
alias music="echo 'Currently playing: $(playerctl metadata --format '{{artist}} - {{title}}')\nUsage: play, pause, next, prev, v+, v-'"
eval "$(zoxide init --cmd cd zsh)" eval "$(zoxide init --cmd cd zsh)"

View File

@@ -42,14 +42,7 @@
"type": "git", "type": "git",
"style": "plain", "style": "plain",
"foreground": "white", "foreground": "white",
"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 }}</>" "template": "<{{ if .Root }}lightBlue{{ else }}green{{ end }}>-[</>{{ .HEAD }}<{{ if .Root }}lightBlue{{ else }}green{{ end }}>]</>"
},
{
"type": "flutter",
"style": "plain",
"foreground": "white",
"template": "<{{ if .Root }}lightBlue{{ else }}green{{ end }}>-[</> {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}<{{ if .Root }}lightBlue{{ else }}green{{ end }}>]</>",
"cache_version": 1
} }
] ]
}, },
@@ -57,15 +50,6 @@
"type": "prompt", "type": "prompt",
"alignment": "right", "alignment": "right",
"segments": [ "segments": [
{
"type": "command",
"style": "plain",
"foreground": "#340452",
"properties": {
"shell": "bash",
"command": "[ \"$(playerctl status)\" = \"Playing\" ] && echo \"$(playerctl metadata title) - $(playerctl metadata artist)\"||"
}
},
{ {
"type": "executiontime", "type": "executiontime",
"style": "plain", "style": "plain",