From f3333928f358275a36e2eb340284a7d0c2af7df2 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 11 Dec 2023 19:18:24 +0900 Subject: [PATCH] Wallpaper effects changes: 1.) Wallpaper Select - switched to any effects 2.) Random wallpaper (CTRL ALT 2) - switched to random effects 3.) Automatic wallpaper - Increased to 30 mins, switched to simple effects --- config/hypr/configs/Execs.conf | 2 +- config/hypr/scripts/Wallpaper.sh | 9 +++++---- config/hypr/scripts/WallpaperRandom.sh | 5 ++--- config/hypr/scripts/WallpaperSelect.sh | 9 +++++---- 4 files changed, 13 insertions(+), 12 deletions(-) diff --git a/config/hypr/configs/Execs.conf b/config/hypr/configs/Execs.conf index 545b26f..2005eae 100644 --- a/config/hypr/configs/Execs.conf +++ b/config/hypr/configs/Execs.conf @@ -9,7 +9,7 @@ exec-once = $HOME/.config/hypr/initial-boot.sh # wallpaper stuff exec-once = swww query || swww init -exec-once = $SwwwRandom $WallpaperPath # random wallpaper switcher every 15 minutes +exec-once = $SwwwRandom $WallpaperPath # random wallpaper switcher every 30 minutes #exec-once = swww query || swww init && swww img $HOME/Pictures/wallpapers/mecha-nostalgia.png # persistent wallpaper # Startup diff --git a/config/hypr/scripts/Wallpaper.sh b/config/hypr/scripts/Wallpaper.sh index c494dca..cd7dd83 100755 --- a/config/hypr/scripts/Wallpaper.sh +++ b/config/hypr/scripts/Wallpaper.sh @@ -1,7 +1,7 @@ #!/bin/bash DIR="$HOME/Pictures/wallpapers/" -SCRIPTSDIR="$HOME/.config/hypr/scripts" +SCRIPTSDIR="$HOME/00-Shared-Drives/Common-nvme/common-wallpapers" PICS=($(find ${DIR} -type f \( -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -o -name "*.gif" \))) RANDOMPICS=${PICS[ $RANDOM % ${#PICS[@]} ]} @@ -9,9 +9,10 @@ RANDOMPICS=${PICS[ $RANDOM % ${#PICS[@]} ]} # Transition config FPS=30 -TYPE="any" -DURATION=3 -SWWW_PARAMS="--transition-fps $FPS --transition-type $TYPE --transition-duration $DURATION" +TYPE="random" +DURATION=1 +BEZIER=".43,1.19,1,.4" +SWWW_PARAMS="--transition-fps $FPS --transition-type $TYPE --transition-duration $DURATION --transition-bezier $BEZIER" swww query || swww init && swww img ${RANDOMPICS} $SWWW_PARAMS diff --git a/config/hypr/scripts/WallpaperRandom.sh b/config/hypr/scripts/WallpaperRandom.sh index 67a12ad..b520572 100755 --- a/config/hypr/scripts/WallpaperRandom.sh +++ b/config/hypr/scripts/WallpaperRandom.sh @@ -16,11 +16,10 @@ fi # Edit below to control the images transition export SWWW_TRANSITION_FPS=60 -export SWWW_TRANSITION_STEP=2 -export SWWW_TRANSITION_TYPE=random +export SWWW_TRANSITION_TYPE=simple # This controls (in seconds) when to switch to the next image -INTERVAL=900 +INTERVAL=1800 while true; do find "$1" \ diff --git a/config/hypr/scripts/WallpaperSelect.sh b/config/hypr/scripts/WallpaperSelect.sh index a3fa1ba..16790bd 100755 --- a/config/hypr/scripts/WallpaperSelect.sh +++ b/config/hypr/scripts/WallpaperSelect.sh @@ -6,10 +6,11 @@ SCRIPTSDIR="$HOME/.config/hypr/scripts" DIR="$HOME/Pictures/wallpapers" # Transition config -FPS=30 -TYPE="simple" -DURATION=3 -SWWW_PARAMS="--transition-fps $FPS --transition-type $TYPE --transition-duration $DURATION" +FPS=60 +TYPE="any" +DURATION=1 +BEZIER="0,.53,1,.48" +SWWW_PARAMS="--transition-fps $FPS --transition-type $TYPE --transition-duration $DURATION --transition-bezier $BEZIER" # Check if swaybg is running if pidof swaybg > /dev/null; then