refactor(moonarch-git): own mpv.conf directly, drop staging+install hook
All checks were successful
Build and publish packages / build-and-publish (push) Successful in 12s

Install mpv.conf straight to /etc/mpv/mpv.conf in package(), remove
the /usr/share/moonarch/mpv/ staging and the post_install copy.
modernz.conf is no longer shipped — overrides moved into mpv.conf
via script-opts-append.
This commit is contained in:
nevaforget 2026-04-24 17:52:19 +02:00
parent c4f702e3e5
commit 2566c0b44e
2 changed files with 2 additions and 11 deletions

View File

@ -195,11 +195,8 @@ package() {
install -Dm644 defaults/xdg/swaync/style.css \ install -Dm644 defaults/xdg/swaync/style.css \
"$pkgdir/usr/share/moonarch/swaync/style.css" "$pkgdir/usr/share/moonarch/swaync/style.css"
# --- mpv configs (deployed by .install, modernz.conf owned by mpv-modernz-git) --- # --- mpv config (owned by moonarch-git; ModernZ color overrides via script-opts-append) ---
install -Dm644 defaults/etc/mpv/mpv.conf \ install -Dm644 defaults/etc/mpv/mpv.conf "$pkgdir/etc/mpv/mpv.conf"
"$pkgdir/usr/share/moonarch/mpv/mpv.conf"
install -Dm644 defaults/etc/mpv/script-opts/modernz.conf \
"$pkgdir/usr/share/moonarch/mpv/modernz.conf"
# --- Reference configs for greetd/moongreet (deployed by .install, not owned) --- # --- Reference configs for greetd/moongreet (deployed by .install, not owned) ---
install -Dm644 defaults/etc/greetd/config.toml \ install -Dm644 defaults/etc/greetd/config.toml \

View File

@ -29,12 +29,6 @@ post_install() {
cp /usr/share/moonarch/swaync/config.json /etc/xdg/swaync/config.json cp /usr/share/moonarch/swaync/config.json /etc/xdg/swaync/config.json
cp /usr/share/moonarch/swaync/style.css /etc/xdg/swaync/style.css cp /usr/share/moonarch/swaync/style.css /etc/xdg/swaync/style.css
# Deploy mpv configs (modernz.conf owned by mpv-modernz-git, overwrite deliberately)
install -Dm644 /usr/share/moonarch/mpv/mpv.conf /etc/mpv/mpv.conf
if [ -d /etc/mpv/script-opts ]; then
cp /usr/share/moonarch/mpv/modernz.conf /etc/mpv/script-opts/modernz.conf
fi
# Deploy Walker config override to skel and existing user homes. # Deploy Walker config override to skel and existing user homes.
# Only copies if user has no config yet — never overwrites manual edits. # Only copies if user has no config yet — never overwrites manual edits.
install -Dm644 /usr/share/moonarch/walker-config.toml \ install -Dm644 /usr/share/moonarch/walker-config.toml \