Browse Source

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
pull/61/head
JaKooLit 2 years ago
parent
commit
f3333928f3
  1. 2
      config/hypr/configs/Execs.conf
  2. 9
      config/hypr/scripts/Wallpaper.sh
  3. 5
      config/hypr/scripts/WallpaperRandom.sh
  4. 9
      config/hypr/scripts/WallpaperSelect.sh

2
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

9
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

5
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" \

9
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

Loading…
Cancel
Save