chore: add thinkpad wallpapers

This commit is contained in:
Jan Meyer
2026-03-05 19:06:59 +01:00
parent 713f3739ac
commit 7f6969d5b4
44 changed files with 403 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ WALLPAPER_HOME=$(realpath "${WALLPAPER_HOME/#~/$HOME}")
selected_file=$(
(
while IFS= read -r file; do
<<<<<<< HEAD
# Pass the image path as an icon
printf "%s\0icon\x1f%s\n" "$(basename "$file")" "$file"
done < <(find "$WALLPAPER_HOME" -maxdepth 1 -name '*.jpg')
@@ -34,3 +35,25 @@ cp "$selected" "$WALLPAPER_HOME/current/current.jpg"
export WALLPAPER=$(cat "$WALLPAPER_HOME/current/selected")
hyprctl hyprpaper wallpaper ", $WALLPAPER"
matugen -t scheme-content image "$WALLPAPER_HOME/current/current.jpg"
=======
echo "$(basename "$file")"
done < <(find $WALLPAPER_HOME -maxdepth 1 -name '*.jpg')
) | sort | rofi -dmenu -i -p "Wallpapers"
)
if [ -z $selected_file ]; then
exit 1
fi
if [ ! -d $WALLPAPER_HOME/current ]; then
mkdir $WALLPAPER_HOME/current/
fi
selected="$WALLPAPER_HOME/$selected_file"
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)
hyprctl hyprpaper wallpaper ", $WALLPAPER"
matugen -t scheme-content image $WALLPAPER_HOME/current/current.jpg
>>>>>>> 912aac4 (chore: add thinkpad wallpapers)