chore: update 08/08

This commit is contained in:
Jan Meyer
2026-08-08 21:11:13 +02:00
parent 45eab7b8e6
commit 313ada955b
25 changed files with 11 additions and 14 deletions

View File

@@ -2,6 +2,13 @@
if [[ -z $WALLPAPER_HOME ]]; then
WALLPAPER_HOME="~/wallpapers/"
fi
if [[ -z $1 ]]; then
THEME=$THEME_MODE
else
THEME=$1
fi
WALLPAPER_HOME=$(realpath "${WALLPAPER_HOME/#~/$HOME}")
selected_file=$(
@@ -32,6 +39,8 @@ echo "$selected" > "$WALLPAPER_HOME/current/selected"
magick "$selected" -scale 10% -blur 0x2.5 -resize 1000% "$WALLPAPER_HOME/current/blurred.jpg"
cp "$selected" "$WALLPAPER_HOME/current/current.jpg"
export WALLPAPER=$(cat "$WALLPAPER_HOME/current/selected")
magick "$(WALLPAPER_HOME)wallpapers/current/current.jpg" -gravity Center -crop 40x40%+0+0 +repage /tmp/matugen_target.jpg
magick "$WALLPAPER_HOME/current/current.jpg" -gravity Center -crop 40x40%+0+0 +repage /tmp/matugen_target.jpg
hyprctl hyprpaper wallpaper ", $WALLPAPER"
matugen -t scheme-fidelity -m dark --source-color-index 0 image "/tmp/matugen_target.jpg"
matugen -t scheme-fidelity -m $THEME --source-color-index 0 image "/tmp/matugen_target.jpg" --lightness-dark 0.066
gsettings set org.gnome.desktop.interface gtk-theme 'adw-gtk-theme'
gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'