diff options
| -rw-r--r-- | home/dot_config/mpd/mpd.conf.tmpl | 10 | ||||
| -rw-r--r-- | home/dot_config/nvim/coc-settings.json | 4 | ||||
| -rw-r--r-- | home/dot_local/.chezmoiexternal.yaml.tmpl (renamed from home/dot_local/.chezmoiexternal.yaml) | 2 | ||||
| -rw-r--r-- | readme.md | 4 |
4 files changed, 19 insertions, 1 deletions
diff --git a/home/dot_config/mpd/mpd.conf.tmpl b/home/dot_config/mpd/mpd.conf.tmpl index 1d17db6..bf0cf3d 100644 --- a/home/dot_config/mpd/mpd.conf.tmpl +++ b/home/dot_config/mpd/mpd.conf.tmpl @@ -5,9 +5,17 @@ {{- if $host -}} {{- $music_directory = printf "%s/music" $base_dir -}} {{- end -}} +{{- with (dig "mpd" "music_dir" nil .) -}} +{{- $music_directory = . -}} +{{- end -}} + +{{- $playlist_directory := "{{ $base_dir }}/playlists" }} +{{- with (dig "mpd" "playlist_dir" nil .) -}} +{{- $playlist_directory = . -}} +{{- end -}} music_directory "{{ $music_directory }}" -playlist_directory "{{ $base_dir }}/playlists" +playlist_directory "{{ $playlist_directory }}" pid_file "{{ $base_dir }}/mpd.pid" state_file "{{ $base_dir }}/mpdstate" diff --git a/home/dot_config/nvim/coc-settings.json b/home/dot_config/nvim/coc-settings.json index fc11396..e80234c 100644 --- a/home/dot_config/nvim/coc-settings.json +++ b/home/dot_config/nvim/coc-settings.json @@ -38,6 +38,10 @@ "glsl": { "command": "glsl_analyzer", "filetypes": ["glsl", "vert", "tesc", "tese", "frag", "geom", "comp"] + }, + "sourcekit": { + "command": "sourcekit-lsp", + "filetypes": ["swift"] } }, "java.import.gradle.java.home": "/usr/lib/jvm/java-17-openjdk" diff --git a/home/dot_local/.chezmoiexternal.yaml b/home/dot_local/.chezmoiexternal.yaml.tmpl index 77df802..6c931ea 100644 --- a/home/dot_local/.chezmoiexternal.yaml +++ b/home/dot_local/.chezmoiexternal.yaml.tmpl @@ -1,4 +1,6 @@ +{{- if eq .chezmoi.os "linux" }} st: type: git-repo url: https://git.pipeframe.xyz/fork/st refreshPeriod: 168h +{{- end }} @@ -17,6 +17,10 @@ data: host: <bool> # base directory to use for playlists/pid/db files base_dir: <path> + # override music_directory (default is satellite address or <base_dir>/music for hosts) + music_dir: <path> + # override playlist_directory (default is <base_dir>/playlists) + playlist_dir: <path> git: # git commit email email: <string> |