Browse Source

wallpaperRamdom will only change focused monitor

pull/260/head^2
JaKooLit 2 years ago
parent
commit
27285b10c8
  1. 4
      config/hypr/UserScripts/WallpaperRandom.sh

4
config/hypr/UserScripts/WallpaperRandom.sh

@ -5,6 +5,8 @@
wallDIR="$HOME/Pictures/wallpapers"
scriptsDir="$HOME/.config/hypr/scripts"
focused_monitor=$(hyprctl monitors | awk '/^Monitor/{name=$2} /focused: yes/{print name}')
PICS=($(find ${wallDIR} -type f \( -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -o -name "*.gif" \)))
RANDOMPICS=${PICS[ $RANDOM % ${#PICS[@]} ]}
@ -17,7 +19,7 @@ BEZIER=".43,1.19,1,.4"
SWWW_PARAMS="--transition-fps $FPS --transition-type $TYPE --transition-duration $DURATION --transition-bezier $BEZIER"
swww query || swww-daemon --format xrgb && swww img ${RANDOMPICS} $SWWW_PARAMS
swww query || swww-daemon --format xrgb && swww img -o $focused_monitor ${RANDOMPICS} $SWWW_PARAMS
${scriptsDir}/WallustSwww.sh

Loading…
Cancel
Save