Add wallpaper-based color theming with matugen

- Matugen templates for Ghostty theme and GTK4 colors
- Ghostty uses generated wallpaper theme instead of Catppuccin
- GTK4 CSS imports generated color overrides
- Update alias runs matugen after switch to regenerate colors
- Add wallpaper fish function to change wallpaper + regen colors

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
ediblerope 2026-04-13 19:56:38 +01:00
parent 7a6ee02360
commit effa5e5cbb
6 changed files with 73 additions and 3 deletions

View file

@ -127,5 +127,23 @@
end
function fish_right_prompt; end
# Set wallpaper and regenerate color theme
function wallpaper
if test (count $argv) -ne 1
echo "Usage: wallpaper <path-to-image>"
return 1
end
set -l img (realpath "$argv[1]")
if not test -f "$img"
echo "File not found: $img"
return 1
end
cp "$img" ~/.local/share/backgrounds/wallpaper.png
gsettings set org.gnome.desktop.background picture-uri "file://$HOME/.local/share/backgrounds/wallpaper.png"
gsettings set org.gnome.desktop.background picture-uri-dark "file://$HOME/.local/share/backgrounds/wallpaper.png"
matugen image "$img" --source-color-index 0 -m dark
echo "Wallpaper and colors updated!"
end
'';
}