From 21f32ce419993818444736f9e6780278acee375e Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sat, 22 Aug 2026 21:03:41 +0200 Subject: more tweaks --- home/dot_config/mpd/mpd.conf.tmpl | 10 +++++++++- home/dot_config/nvim/coc-settings.json | 4 ++++ home/dot_local/.chezmoiexternal.yaml | 4 ---- home/dot_local/.chezmoiexternal.yaml.tmpl | 6 ++++++ readme.md | 4 ++++ 5 files changed, 23 insertions(+), 5 deletions(-) delete mode 100644 home/dot_local/.chezmoiexternal.yaml create mode 100644 home/dot_local/.chezmoiexternal.yaml.tmpl 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 deleted file mode 100644 index 77df802..0000000 --- a/home/dot_local/.chezmoiexternal.yaml +++ /dev/null @@ -1,4 +0,0 @@ -st: - type: git-repo - url: https://git.pipeframe.xyz/fork/st - refreshPeriod: 168h diff --git a/home/dot_local/.chezmoiexternal.yaml.tmpl b/home/dot_local/.chezmoiexternal.yaml.tmpl new file mode 100644 index 0000000..6c931ea --- /dev/null +++ b/home/dot_local/.chezmoiexternal.yaml.tmpl @@ -0,0 +1,6 @@ +{{- if eq .chezmoi.os "linux" }} +st: + type: git-repo + url: https://git.pipeframe.xyz/fork/st + refreshPeriod: 168h +{{- end }} diff --git a/readme.md b/readme.md index a1827b6..ab8eddb 100644 --- a/readme.md +++ b/readme.md @@ -17,6 +17,10 @@ data: host: # base directory to use for playlists/pid/db files base_dir: + # override music_directory (default is satellite address or /music for hosts) + music_dir: + # override playlist_directory (default is /playlists) + playlist_dir: git: # git commit email email: -- cgit v1.2.3