From 62495d8e3db23190b15da6c9158c40e9dff8f579 Mon Sep 17 00:00:00 2001 From: nevaforget Date: Tue, 7 Apr 2026 12:23:06 +0200 Subject: [PATCH] fix: prevent kanshi config from breaking wdisplays-persistent MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- defaults/xdg/kanshi/config | 2 -- scripts/transform.sh | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/defaults/xdg/kanshi/config b/defaults/xdg/kanshi/config index 50ebfef..e69de29 100644 --- a/defaults/xdg/kanshi/config +++ b/defaults/xdg/kanshi/config @@ -1,2 +0,0 @@ -# ABOUTME: kanshi configuration for dynamic display output management. -# ABOUTME: Add profiles here to auto-switch outputs on hotplug events. diff --git a/scripts/transform.sh b/scripts/transform.sh index 4dbf06a..4b62122 100755 --- a/scripts/transform.sh +++ b/scripts/transform.sh @@ -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"