Avoid file conflict with walker package for config.toml

walker owns /etc/xdg/walker/config.toml and overwrites it on every
update. Instead of fighting for that path, deploy our config override
to user homes (~/.config/walker/) via the .install hook where XDG
lookup finds it first. Also fix stale rofi dependency → walker + elephant.
This commit is contained in:
2026-03-30 19:39:50 +02:00
parent 939de4472f
commit d827c689b0
2 changed files with 23 additions and 1 deletions
+10 -1
View File
@@ -22,7 +22,8 @@ depends=(
# Bar, launcher, notifications
'waybar'
'rofi-lbonn-wayland-git'
'walker'
'elephant'
'dunst'
# Terminal
@@ -107,9 +108,13 @@ package() {
cd "$srcdir/moonarch"
# --- XDG configs -> /etc/xdg/ ---
# walker/config.toml is excluded (owned by walker package).
# Our override is installed to /usr/share/moonarch/ and deployed
# to /etc/skel/ + existing user homes via the .install hook.
local _xdg_src="defaults/xdg"
while IFS= read -r -d '' file; do
local _rel="${file#"$_xdg_src/"}"
[[ "$_rel" == "walker/config.toml" ]] && continue
if [[ "$file" == *.sh ]]; then
install -Dm755 "$file" "$pkgdir/etc/xdg/$_rel"
else
@@ -146,6 +151,10 @@ package() {
install -Dm644 packages/official.txt "$pkgdir/usr/share/moonarch/official.txt"
install -Dm644 packages/aur.txt "$pkgdir/usr/share/moonarch/aur.txt"
# --- Walker config override (deployed to user homes by .install) ---
install -Dm644 defaults/xdg/walker/config.toml \
"$pkgdir/usr/share/moonarch/walker-config.toml"
# --- Reference configs for greetd/moongreet (deployed by .install, not owned) ---
install -Dm644 defaults/etc/greetd/config.toml \
"$pkgdir/usr/share/moonarch/greetd/config.toml"