aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/UserScripts/WallpaperRandom.sh
diff options
context:
space:
mode:
authorJa.KooLit <jimmielovejay@gmail.com>2024-01-02 01:21:53 +0900
committerGitHub <noreply@github.com>2024-01-02 01:21:53 +0900
commit1acea95602ecd292f4c806ce946c0ab33176e4ce (patch)
treea43d4ccfd313a4effa92919fef8d96934c23bac8 /config/hypr/UserScripts/WallpaperRandom.sh
parent3d0283f6c0f323bf504d99aadb0019e6357048a8 (diff)
parente2bcb89ce79d0a0469e3eb362cc0cc802ddac208 (diff)
Merge pull request #116 from JaKooLit/development
Development
Diffstat (limited to 'config/hypr/UserScripts/WallpaperRandom.sh')
-rwxr-xr-xconfig/hypr/UserScripts/WallpaperRandom.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/config/hypr/UserScripts/WallpaperRandom.sh b/config/hypr/UserScripts/WallpaperRandom.sh
new file mode 100755
index 00000000..f8cc54f9
--- /dev/null
+++ b/config/hypr/UserScripts/WallpaperRandom.sh
@@ -0,0 +1,26 @@
+#!/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
+
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage