aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/UserScripts/Wallpaper.sh
diff options
context:
space:
mode:
authorJaKooLit <jimmielovejay.com>2024-01-01 15:13:32 +0900
committerJaKooLit <jimmielovejay.com>2024-01-01 15:13:32 +0900
commit16621bef0e8e3419f82389ba841b97db40a555b1 (patch)
tree01d154902acde99d3e110072259a9d72f1eee4af /config/hypr/UserScripts/Wallpaper.sh
parent978cb01c7794ca6aabc613810b23698f94fad298 (diff)
- Breaking Changes.
- Quick Edit script moved to user scripts - I understand some users wants to use other editor - RofiBeats moved to user scripts - This is because users wants their own stations :) - RofiBeats keybinds changed to SUPER SHIFT M keybind - Keybinds to change layout SUPER ALT L - Wlogout Script adjusted with 4K. - Wallpaper Scripts are moved to UserScripts. This is because if users has a different location of wallpapers and also wants a different animations
Diffstat (limited to 'config/hypr/UserScripts/Wallpaper.sh')
-rwxr-xr-xconfig/hypr/UserScripts/Wallpaper.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/config/hypr/UserScripts/Wallpaper.sh b/config/hypr/UserScripts/Wallpaper.sh
new file mode 100755
index 00000000..d75d2eab
--- /dev/null
+++ b/config/hypr/UserScripts/Wallpaper.sh
@@ -0,0 +1,24 @@
+#!/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
+
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage