aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/Wallpaper.sh
diff options
context:
space:
mode:
authorJaKooLit <jimmielovejay@gmail.com>2023-11-24 01:29:06 +0900
committerJaKooLit <jimmielovejay@gmail.com>2023-11-24 01:29:06 +0900
commitab573dec63693a438da1e93d951750bcfb4e037d (patch)
tree674b615442a6d639477096a8b714fc0d8bc6b703 /config/hypr/scripts/Wallpaper.sh
parente6b5ab06123c41a47611b610ef2bb42694c23600 (diff)
clean up wallpaper Script
Diffstat (limited to 'config/hypr/scripts/Wallpaper.sh')
-rwxr-xr-xconfig/hypr/scripts/Wallpaper.sh44
1 files changed, 2 insertions, 42 deletions
diff --git a/config/hypr/scripts/Wallpaper.sh b/config/hypr/scripts/Wallpaper.sh
index 20c367cc..d5ea4645 100755
--- a/config/hypr/scripts/Wallpaper.sh
+++ b/config/hypr/scripts/Wallpaper.sh
@@ -4,48 +4,8 @@ DIR=$HOME/Pictures/wallpapers/
PICS=($(find ${DIR} -type f \( -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -o -name "*.gif" \)))
RANDOMPICS=${PICS[ $RANDOM % ${#PICS[@]} ]}
-change_swaybg(){
- pkill swww
- pkill swaybg
- swaybg -m fill -i ${RANDOMPICS}
-}
-
-change_swww(){
- pkill swaybg
- swww query || swww init
- swww img ${RANDOMPICS} --transition-fps 30 --transition-type any --transition-duration 3
-}
-
-change_current(){
- if pidof swaybg >/dev/null; then
- change_swaybg
- else
- change_swww
- fi
-}
-
-switch(){
- if pidof swaybg >/dev/null; then
- change_swww
- else
- change_swaybg
- fi
-}
-
-case "$1" in
- "swaybg")
- change_swaybg
- ;;
- "swww")
- change_swww
- ;;
- "s")
- switch
- ;;
- *)
- change_current
- ;;
-esac
+swww query || swww init
+swww img ${RANDOMPICS} --transition-fps 30 --transition-type any --transition-duration 3
exec $HOME/.config/hypr/scripts/PywalSwww.sh &
sleep 1
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage