diff --git a/docs/wallpapers.md b/docs/wallpapers.md index 67845d2..8776628 100644 --- a/docs/wallpapers.md +++ b/docs/wallpapers.md @@ -12,11 +12,13 @@ The wallpaper is referenced directly in `settings/plasma/default.nix`: ```nix workspace = { - wallpaper = ../../wallpapers/wallpaper.jpg; + wallpaper = "${../../wallpapers/wallpaper.jpg}"; # ... other settings }; ``` +Note: The string interpolation `"${...}"` is required to convert the path to a Nix store path string. + Applied automatically on every Home Manager rebuild. ## Changing the Wallpaper diff --git a/scripts/check-wallpaper-containment.sh b/scripts/check-wallpaper-containment.sh new file mode 100644 index 0000000..c9ffd5e --- /dev/null +++ b/scripts/check-wallpaper-containment.sh @@ -0,0 +1,34 @@ +#!/usr/bin/env bash +# Check the actual containment wallpaper settings + +echo "Checking wallpaper settings in containments..." +echo "" + +CONFIG="/home/ewan/.config/plasma-org.kde.plasma.desktop-appletsrc" + +# Find all containment IDs +CONTAINMENTS=$(grep "^\[Containments\]\[[0-9]*\]$" "$CONFIG" | grep -o "[0-9]*") + +for id in $CONTAINMENTS; do + echo "=== Containment $id ===" + + # Check if it's a desktop containment + TYPE=$(grep -A 50 "^\[Containments\]\[$id\]$" "$CONFIG" | grep "^activityId=" | head -1) + + if [ -n "$TYPE" ]; then + echo "Type: Desktop containment" + echo "" + echo "Wallpaper config:" + # Get the wallpaper section + sed -n "/^\[Containments\]\[$id\]\[Wallpaper\]/,/^\[/p" "$CONFIG" | head -30 + echo "" + fi +done + +echo "" +echo "=== Looking for Image= setting ===" +grep -n "^Image=" "$CONFIG" || echo "No Image= setting found!" +echo "" + +echo "=== Current plasmarc wallpapers section ===" +grep -A 10 "\[Wallpapers\]" ~/.config/plasmarc diff --git a/settings/plasma/default.nix b/settings/plasma/default.nix index d6d6f82..d039466 100644 --- a/settings/plasma/default.nix +++ b/settings/plasma/default.nix @@ -137,8 +137,8 @@ in # ── Workspace ───────────────────────────────────────────────────────────── workspace = { - # Wallpaper — direct path to wallpaper.jpg. - wallpaper = ../../wallpapers/wallpaper.jpg; + # Wallpaper — direct path to wallpaper.jpg (must be string-interpolated). + wallpaper = "${../../wallpapers/wallpaper.jpg}"; # Color scheme — from settings/config/desktop.nix. # Explicit here so it always wins, even if the catppuccin module changes