Compare commits
3 Commits
1ec31f95a2
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
313ada955b | ||
|
|
45eab7b8e6 | ||
|
|
4cdaec4088 |
@@ -2,12 +2,18 @@
|
||||
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=$(
|
||||
(
|
||||
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')
|
||||
@@ -33,27 +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/current/current.jpg" -gravity Center -crop 40x40%+0+0 +repage /tmp/matugen_target.jpg
|
||||
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)
|
||||
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'
|
||||
|
||||
|
Before Width: | Height: | Size: 467 KiB |
|
Before Width: | Height: | Size: 368 KiB After Width: | Height: | Size: 368 KiB |
BIN
audi-nuvolari.jpg
Normal file
|
After Width: | Height: | Size: 290 KiB |
|
Before Width: | Height: | Size: 393 KiB After Width: | Height: | Size: 393 KiB |
|
Before Width: | Height: | Size: 813 KiB After Width: | Height: | Size: 813 KiB |
BIN
audi-rs5_2027.jpg
Normal file
|
After Width: | Height: | Size: 219 KiB |
BIN
audi-rs7_2023.jpg
Normal file
|
After Width: | Height: | Size: 820 KiB |
|
Before Width: | Height: | Size: 380 KiB |
BIN
bmw-m3-touring_24h.jpg
Normal file
|
After Width: | Height: | Size: 316 KiB |
|
Before Width: | Height: | Size: 371 KiB |
BIN
chernobyl.jpg
|
Before Width: | Height: | Size: 719 KiB |
|
Before Width: | Height: | Size: 274 KiB |
|
Before Width: | Height: | Size: 778 KiB After Width: | Height: | Size: 778 KiB |
|
Before Width: | Height: | Size: 352 KiB After Width: | Height: | Size: 352 KiB |
|
Before Width: | Height: | Size: 180 KiB |
|
Before Width: | Height: | Size: 980 KiB After Width: | Height: | Size: 980 KiB |
|
Before Width: | Height: | Size: 642 KiB After Width: | Height: | Size: 642 KiB |
|
Before Width: | Height: | Size: 523 KiB After Width: | Height: | Size: 523 KiB |
|
Before Width: | Height: | Size: 643 KiB After Width: | Height: | Size: 643 KiB |
|
Before Width: | Height: | Size: 1.5 MiB After Width: | Height: | Size: 1.5 MiB |
|
Before Width: | Height: | Size: 257 KiB After Width: | Height: | Size: 257 KiB |
|
Before Width: | Height: | Size: 934 KiB After Width: | Height: | Size: 934 KiB |
|
Before Width: | Height: | Size: 735 KiB |
|
Before Width: | Height: | Size: 517 KiB After Width: | Height: | Size: 517 KiB |
|
Before Width: | Height: | Size: 246 KiB |
BIN
originals/audi-nuvolari.jpg
Normal file
|
After Width: | Height: | Size: 425 KiB |
BIN
originals/audi-rs5_2027.jpg
Normal file
|
After Width: | Height: | Size: 291 KiB |
BIN
originals/audi-rs7_2023.jpg
Normal file
|
After Width: | Height: | Size: 1.1 MiB |
BIN
originals/bmw_m3-touring-24h.jpg
Normal file
|
After Width: | Height: | Size: 413 KiB |
BIN
originals/tiguan-2021.jpg
Normal file
|
After Width: | Height: | Size: 436 KiB |
|
Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 1.4 MiB |
|
Before Width: | Height: | Size: 200 KiB |
|
Before Width: | Height: | Size: 218 KiB |
BIN
vw-tiguan_2021.jpg
Normal file
|
After Width: | Height: | Size: 314 KiB |
|
Before Width: | Height: | Size: 142 KiB |
|
Before Width: | Height: | Size: 254 KiB |