36 changed files with 183 additions and 119 deletions
@ -1,2 +1,7 @@
|
||||
#!/bin/bash |
||||
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## |
||||
|
||||
# wlsunset project page |
||||
# https://sr.ht/~kennylevinsen/wlsunset/ |
||||
|
||||
wlsunset -t 4000 -T 6500 -d 900 -S 07:00 -s 19:00 |
||||
@ -1,24 +0,0 @@
|
||||
#!/bin/bash |
||||
|
||||
DIR="$HOME/Pictures/wallpapers" |
||||
SCRIPTSDIR="$HOME/.config/hypr/scripts" |
||||
|
||||
PICS=($(find ${DIR} -type f \( -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -o -name "*.gif" \))) |
||||
RANDOMPICS=${PICS[ $RANDOM % ${#PICS[@]} ]} |
||||
|
||||
|
||||
# Transition config |
||||
FPS=60 |
||||
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 |
||||
|
||||
|
||||
${SCRIPTSDIR}/PywalSwww.sh |
||||
sleep 1 |
||||
${SCRIPTSDIR}/Refresh.sh |
||||
|
||||
@ -0,0 +1,37 @@
|
||||
#!/bin/bash |
||||
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ## |
||||
# source https://wiki.archlinux.org/title/Hyprland#Using_a_script_to_change_wallpaper_every_X_minutes |
||||
|
||||
# This script will randomly go through the files of a directory, setting it |
||||
# up as the wallpaper at regular intervals |
||||
# |
||||
# NOTE: this script uses bash (not POSIX shell) for the RANDOM variable |
||||
|
||||
pywal_refresh=$HOME/.config/hypr/scripts/RefreshNoWaybar.sh |
||||
|
||||
if [[ $# -lt 1 ]] || [[ ! -d $1 ]]; then |
||||
echo "Usage: |
||||
$0 <dir containing images>" |
||||
exit 1 |
||||
fi |
||||
|
||||
# Edit below to control the images transition |
||||
export SWWW_TRANSITION_FPS=60 |
||||
export SWWW_TRANSITION_TYPE=simple |
||||
|
||||
# This controls (in seconds) when to switch to the next image |
||||
INTERVAL=1800 |
||||
|
||||
while true; do |
||||
find "$1" \ |
||||
| while read -r img; do |
||||
echo "$((RANDOM % 1000)):$img" |
||||
done \ |
||||
| sort -n | cut -d':' -f2- \ |
||||
| while read -r img; do |
||||
swww img "$img" |
||||
$pywal_refresh |
||||
sleep $INTERVAL |
||||
|
||||
done |
||||
done |
||||
Loading…
Reference in new issue