fix: prevent kanshi config from breaking wdisplays-persistent
All checks were successful
Update PKGBUILD version / update-pkgver (push) Successful in 3s
All checks were successful
Update PKGBUILD version / update-pkgver (push) Successful in 3s
Remove ABOUTME comments from kanshi default config — they broke the profile parser in wdisplays-persistent store.c, preventing config saves. Also skip kanshi in transform.sh when user profiles already exist, since display layouts are machine-specific.
This commit is contained in:
parent
76f5602b47
commit
62495d8e3d
@ -1,2 +0,0 @@
|
||||
# ABOUTME: kanshi configuration for dynamic display output management.
|
||||
# ABOUTME: Add profiles here to auto-switch outputs on hotplug events.
|
||||
@ -301,6 +301,8 @@ for src_dir in /etc/xdg/*/; do
|
||||
[[ -d "$DEFAULTS_DIR/xdg/$app_name" ]] || continue
|
||||
# gtk-4.0 is handled separately with Colloid-Grey-Dark-Catppuccin theme symlinks
|
||||
[[ "$app_name" == "gtk-4.0" ]] && continue
|
||||
# kanshi profiles are user-specific (display setup) — only seed, never overwrite
|
||||
[[ "$app_name" == "kanshi" ]] && [[ -d "$HOME/.config/kanshi" ]] && continue
|
||||
dest_dir="$HOME/.config/$app_name"
|
||||
rm -rf "$dest_dir" 2>/dev/null || sudo rm -rf "$dest_dir"
|
||||
cp -r --no-preserve=ownership "$src_dir" "$dest_dir"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user