diff --git a/scripts/blob_wallpaper.sh b/scripts/blob_wallpaper.sh index c56bf09..c34af45 100755 --- a/scripts/blob_wallpaper.sh +++ b/scripts/blob_wallpaper.sh @@ -1,9 +1,11 @@ #!/bin/bash WALLPAPER_DIR="$HOME/wallpapers" +THEME_DIR="$HOME/.config/omarchy/themes/Blob-Dynamic" # Create the directory if it doesn't exist mkdir -p "$WALLPAPER_DIR" +mkdir -p "$THEME_DIR/backgrounds" if [ -z "$1" ]; then echo "Usage: blob_wallpaper " @@ -23,11 +25,42 @@ else exit 1 fi -# Point the Omarchy background link to your custom image -ln -nsf "$IMAGE_PATH" "$HOME/.config/omarchy/current/background" +echo "Extracting colors using Pywal..." +wal -i "$IMAGE_PATH" -n -q -# Relaunch swaybg smoothly -pkill -x swaybg -setsid uwsm-app -- swaybg -i "$HOME/.config/omarchy/current/background" -m fill >/dev/null 2>&1 & +# Clear old backgrounds and copy the new one into the dynamic theme +rm -f "$THEME_DIR/backgrounds/"* +cp "$IMAGE_PATH" "$THEME_DIR/backgrounds/" -echo "Wallpaper updated to: $IMAGE_PATH" \ No newline at end of file +# Parse pywal colors and write to colors.toml in the dynamic theme +cat < "$THEME_DIR/colors.toml" +accent = "$(sed -n '2p' ~/.cache/wal/colors)" +cursor = "$(sed -n '8p' ~/.cache/wal/colors)" +foreground = "$(sed -n '8p' ~/.cache/wal/colors)" +background = "$(sed -n '1p' ~/.cache/wal/colors)" +selection_foreground = "$(sed -n '1p' ~/.cache/wal/colors)" +selection_background = "$(sed -n '2p' ~/.cache/wal/colors)" + +color0 = "$(sed -n '1p' ~/.cache/wal/colors)" +color1 = "$(sed -n '2p' ~/.cache/wal/colors)" +color2 = "$(sed -n '3p' ~/.cache/wal/colors)" +color3 = "$(sed -n '4p' ~/.cache/wal/colors)" +color4 = "$(sed -n '5p' ~/.cache/wal/colors)" +color5 = "$(sed -n '6p' ~/.cache/wal/colors)" +color6 = "$(sed -n '7p' ~/.cache/wal/colors)" +color7 = "$(sed -n '8p' ~/.cache/wal/colors)" +color8 = "$(sed -n '9p' ~/.cache/wal/colors)" +color9 = "$(sed -n '10p' ~/.cache/wal/colors)" +color10 = "$(sed -n '11p' ~/.cache/wal/colors)" +color11 = "$(sed -n '12p' ~/.cache/wal/colors)" +color12 = "$(sed -n '13p' ~/.cache/wal/colors)" +color13 = "$(sed -n '14p' ~/.cache/wal/colors)" +color14 = "$(sed -n '15p' ~/.cache/wal/colors)" +color15 = "$(sed -n '16p' ~/.cache/wal/colors)" +EOF + +# Apply the Blob-Dynamic theme +# omarchy-theme-set manages the background and reloads waybar and AGS +omarchy-theme-set "Blob-Dynamic" + +echo "Wallpaper and dynamic theme applied successfully: $IMAGE_PATH" \ No newline at end of file diff --git a/wallpapers/anime_skyline.png b/wallpapers/anime_skyline.png new file mode 100644 index 0000000..2112be3 Binary files /dev/null and b/wallpapers/anime_skyline.png differ diff --git a/wallpapers/astronaut.jpg b/wallpapers/astronaut.jpg new file mode 100644 index 0000000..49c84f2 Binary files /dev/null and b/wallpapers/astronaut.jpg differ diff --git a/wallpapers/black_car_girl.jpg b/wallpapers/black_car_girl.jpg new file mode 100644 index 0000000..edab3c0 Binary files /dev/null and b/wallpapers/black_car_girl.jpg differ diff --git a/wallpapers/cat.jpg b/wallpapers/cat.jpg new file mode 100644 index 0000000..5638df3 Binary files /dev/null and b/wallpapers/cat.jpg differ diff --git a/wallpapers/cliff-edge.jpg b/wallpapers/cliff-edge.jpg new file mode 100644 index 0000000..b52858a Binary files /dev/null and b/wallpapers/cliff-edge.jpg differ diff --git a/wallpapers/colorful-planets.jpg b/wallpapers/colorful-planets.jpg new file mode 100644 index 0000000..3881e56 Binary files /dev/null and b/wallpapers/colorful-planets.jpg differ diff --git a/wallpapers/deer-forest.jpg b/wallpapers/deer-forest.jpg new file mode 100644 index 0000000..495b5a3 Binary files /dev/null and b/wallpapers/deer-forest.jpg differ diff --git a/wallpapers/hello-worlds.png b/wallpapers/hello-worlds.png new file mode 100644 index 0000000..c56c4d6 Binary files /dev/null and b/wallpapers/hello-worlds.png differ diff --git a/wallpapers/home127-dark.jpg b/wallpapers/home127-dark.jpg new file mode 100644 index 0000000..d0720dc Binary files /dev/null and b/wallpapers/home127-dark.jpg differ diff --git a/wallpapers/literal-wallpaper.png b/wallpapers/literal-wallpaper.png new file mode 100644 index 0000000..e1795e5 Binary files /dev/null and b/wallpapers/literal-wallpaper.png differ diff --git a/wallpapers/nord-chainsaw.png b/wallpapers/nord-chainsaw.png new file mode 100644 index 0000000..0d6e781 Binary files /dev/null and b/wallpapers/nord-chainsaw.png differ diff --git a/wallpapers/nord_minimal_cat.png b/wallpapers/nord_minimal_cat.png new file mode 100644 index 0000000..6955c86 Binary files /dev/null and b/wallpapers/nord_minimal_cat.png differ diff --git a/wallpapers/pacman-black.png b/wallpapers/pacman-black.png new file mode 100644 index 0000000..3a74a3f Binary files /dev/null and b/wallpapers/pacman-black.png differ diff --git a/wallpapers/pastel-car.png b/wallpapers/pastel-car.png new file mode 100644 index 0000000..94f822f Binary files /dev/null and b/wallpapers/pastel-car.png differ diff --git a/wallpapers/pastel-city.png b/wallpapers/pastel-city.png new file mode 100644 index 0000000..5965454 Binary files /dev/null and b/wallpapers/pastel-city.png differ diff --git a/wallpapers/pixel-city.png b/wallpapers/pixel-city.png new file mode 100644 index 0000000..48659ac Binary files /dev/null and b/wallpapers/pixel-city.png differ diff --git a/wallpapers/pixel-earth.png b/wallpapers/pixel-earth.png new file mode 100644 index 0000000..3dc6849 Binary files /dev/null and b/wallpapers/pixel-earth.png differ diff --git a/wallpapers/rm-rf.jpg b/wallpapers/rm-rf.jpg new file mode 100644 index 0000000..6feb521 Binary files /dev/null and b/wallpapers/rm-rf.jpg differ diff --git a/wallpapers/shiny-colors.png b/wallpapers/shiny-colors.png new file mode 100644 index 0000000..0d9b1dc Binary files /dev/null and b/wallpapers/shiny-colors.png differ diff --git a/wallpapers/underwater.png b/wallpapers/underwater.png new file mode 100644 index 0000000..8f68e7e Binary files /dev/null and b/wallpapers/underwater.png differ