removed old Wallpaper script stuff
@@ -1 +0,0 @@
|
|||||||
/home/honney/.config/hypr/scripts/wallpapers/wallpapers/cherry_river.png
|
|
||||||
|
Before Width: | Height: | Size: 3.0 MiB |
@@ -1,79 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
wallpapers_dir="$HOME/Pictures/Wallpapers/"
|
|
||||||
current_wallpaper=$(cat $wallpapers_dir"/Static/current")
|
|
||||||
|
|
||||||
# Pick a random wallpaper from the directory but not the current_wallpaper
|
|
||||||
image=$(find "$wallpapers_dir" -maxdepth 1 -type f ! -name "$(basename "$current_wallpaper")" | shuf -n 1)
|
|
||||||
|
|
||||||
echo "Image $image"
|
|
||||||
|
|
||||||
# Check if an image was provided
|
|
||||||
if [[ -z "$image" ]]; then
|
|
||||||
echo "Usage: $0 /path/to/image"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -x "/usr/bin/swww-daemon" ]; then
|
|
||||||
echo "swww-daemon exists and is executable"
|
|
||||||
|
|
||||||
# Check if swww daemon is running
|
|
||||||
if ! pgrep -x "swww-daemon" > /dev/null; then
|
|
||||||
echo "Starting swww daemon..."
|
|
||||||
swww-daemon &
|
|
||||||
|
|
||||||
# Give the daemon a moment to start
|
|
||||||
sleep 0.2
|
|
||||||
echo "daemon started"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Set the wallpaper
|
|
||||||
echo "running"
|
|
||||||
swww img "$image" -t grow --transition-duration 1
|
|
||||||
|
|
||||||
elif [ -x "/usr/bin/hyprpaper" ]; then
|
|
||||||
echo "hyprpaper exists and is executable"
|
|
||||||
|
|
||||||
if ! pgrep -x "hyprpaper" > /dev/null; then
|
|
||||||
echo "Starting hyprpaper daemon..."
|
|
||||||
hyprpaper &
|
|
||||||
|
|
||||||
# Give the daemon a moment to start
|
|
||||||
sleep 0.2
|
|
||||||
echo "daemon started"
|
|
||||||
fi
|
|
||||||
sed -i "3s|path = .*|path = ${image}|" ~/.config/hypr/hyprpaper.conf
|
|
||||||
hyprctl monitors -j | jq -r 'sort_by(.id) | .[].name' | while IFS= read -r display; do
|
|
||||||
hyprctl hyprpaper wallpaper "$display, $image"
|
|
||||||
done
|
|
||||||
echo "set Wallpaper to $image with hyprpaper"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -x "/usr/bin/matugen" ]; then
|
|
||||||
matugen image $image --mode dark --source-color-index 0
|
|
||||||
else
|
|
||||||
cp $HOME/.config/quickshell/colors/example_colors.qml $HOME/.config/quickshell/colors/Colors.qml
|
|
||||||
fi
|
|
||||||
|
|
||||||
### Blured Wallpaper for wlogout
|
|
||||||
blur="50x30"
|
|
||||||
static_wallpaper_dir="$HOME/Pictures/Wallpapers/Static"
|
|
||||||
|
|
||||||
if [ ! -d $static_wallpaper_dir ]; then
|
|
||||||
mkdir -p $static_wallpaper_dir;
|
|
||||||
fi
|
|
||||||
|
|
||||||
current_wallpaper="$static_wallpaper_dir/current"
|
|
||||||
|
|
||||||
echo "$image" > $current_wallpaper
|
|
||||||
|
|
||||||
blurred_wp="$static_wallpaper_dir/blurred.jpg"
|
|
||||||
|
|
||||||
if [ -x "/usr/bin/sddm" ]; then
|
|
||||||
magick $image -blur $blur $blurred_wp
|
|
||||||
else
|
|
||||||
cp $image $blurred_wp
|
|
||||||
fi
|
|
||||||
if [ -x "/usr/bin/sddm" ] && [ -d "/usr/share/backgrounds" ]; then
|
|
||||||
sddm_background="/usr/share/backgrounds/background.jpg"
|
|
||||||
cp "$image" "$sddm_background"
|
|
||||||
fi
|
|
||||||
@@ -1,73 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# _ _ _ _____ __ __ _____ _____ _____ _____ _____
|
|
||||||
# | | | | _ | | | | | _ | _ | _ | __| __ |
|
|
||||||
# | | | | | |__| |__| __| | __| __| -|
|
|
||||||
# |_____|__|__|_____|_____|__| |__|__|__| |_____|__|__|
|
|
||||||
#
|
|
||||||
|
|
||||||
current_wp="$HOME/.config/hypr/scripts/wallpapers/current_wallpaper"
|
|
||||||
blurred_wp="$HOME/.config/hypr/scripts/wallpapers/current_wallpaper_blurred.png"
|
|
||||||
wallpapers_dir="$HOME/.config/hypr/scripts/wallpapers/wallpapers"
|
|
||||||
blur="50x30"
|
|
||||||
|
|
||||||
# write path to wp into file
|
|
||||||
if [ ! -f $current_wp ]; then
|
|
||||||
touch $current_wp
|
|
||||||
echo "$HOME/wallpapers/default.png" > "$current_wp"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# current wallpaper path
|
|
||||||
current_wallpaper=$(cat "$current_wp")
|
|
||||||
|
|
||||||
# echo "$current_wallpaper"
|
|
||||||
|
|
||||||
wallpapers=$(ls "$wallpapers_dir"/*.png "$wallpapers_dir"/*.jpg 2>/dev/null)
|
|
||||||
|
|
||||||
# Convert the wallpapers list into an array
|
|
||||||
wallpapers_array=($wallpapers)
|
|
||||||
|
|
||||||
# Get the index of the current wallpaper in the array
|
|
||||||
current_index=-1
|
|
||||||
for i in "${!wallpapers_array[@]}"; do
|
|
||||||
if [ "${wallpapers_array[$i]}" == "$current_wallpaper" ]; then
|
|
||||||
current_index=$i
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# If current wallpaper is not found in the list, set it to the first wallpaper
|
|
||||||
if [ "$current_index" -eq -1 ]; then
|
|
||||||
current_index=0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Determine the next wallpaper (loop back to the start if we're at the end)
|
|
||||||
next_index=$(( (current_index + 1) % ${#wallpapers_array[@]} ))
|
|
||||||
next_wallpaper="${wallpapers_array[$next_index]}"
|
|
||||||
|
|
||||||
# Update the current wallpaper path in the file
|
|
||||||
echo "$next_wallpaper" > "$current_wp"
|
|
||||||
|
|
||||||
# echo "Current wallpaper is now: $next_wallpaper"
|
|
||||||
|
|
||||||
wal -q -i $next_wallpaper
|
|
||||||
|
|
||||||
# launch waybar based on new wallpaper colors
|
|
||||||
source "$HOME/.cache/wal/colors.sh"
|
|
||||||
~/.config/waybar/launch.sh &
|
|
||||||
|
|
||||||
# update soft link to cava colors based on wallpaper colors
|
|
||||||
# (cava needs to manually be restarted)
|
|
||||||
ln -sf "$HOME/.cache/wal/cava-colors" "$HOME/.config/cava/config"
|
|
||||||
|
|
||||||
hyprctl hyprpaper preload "$next_wallpaper"
|
|
||||||
hyprctl hyprpaper wallpaper ", $next_wallpaper"
|
|
||||||
|
|
||||||
# Create Blurred Wallpaper
|
|
||||||
magick $next_wallpaper -resize 3840x2160\! $next_wallpaper
|
|
||||||
echo ":: Resized"
|
|
||||||
echo "Next wallpaper path: $next_wallpaper"
|
|
||||||
echo "Blurred wallpaper path: $blurred_wp"
|
|
||||||
if [ ! "$blur" == "0x0" ] ; then
|
|
||||||
magick $next_wallpaper -blur $blur $blurred_wp
|
|
||||||
echo ":: Blurred"
|
|
||||||
fi
|
|
||||||
|
Before Width: | Height: | Size: 16 MiB |
|
Before Width: | Height: | Size: 7.5 MiB |
|
Before Width: | Height: | Size: 12 MiB |
|
Before Width: | Height: | Size: 14 MiB |
|
Before Width: | Height: | Size: 4.5 MiB |
|
Before Width: | Height: | Size: 18 MiB |
|
Before Width: | Height: | Size: 11 MiB |
|
Before Width: | Height: | Size: 5.8 MiB |
|
Before Width: | Height: | Size: 10 MiB |
|
Before Width: | Height: | Size: 11 MiB |
|
Before Width: | Height: | Size: 13 MiB |
|
Before Width: | Height: | Size: 9.9 MiB |
|
Before Width: | Height: | Size: 10 MiB |
|
Before Width: | Height: | Size: 13 MiB |
|
Before Width: | Height: | Size: 8.9 MiB |
|
Before Width: | Height: | Size: 3.0 MiB |
@@ -1 +0,0 @@
|
|||||||
https://wallhaven.cc
|
|
||||||