mirror of
https://github.com/gaitas13/dotfiles.git
synced 2025-12-06 15:25:37 +01:00
26 lines
671 B
Bash
Executable file
26 lines
671 B
Bash
Executable file
#!/bin/bash
|
|
## /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ ##
|
|
# Script for Random Wallpaper ( CTRL ALT W)
|
|
|
|
wallDIR="$HOME/Pictures/wallpapers"
|
|
scriptsDir="$HOME/.config/hypr/scripts"
|
|
|
|
PICS=($(find ${wallDIR} -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
|
|
|