varietywalls / variety

Wallpaper downloader and manager for Linux systems
http://peterlevi.com/variety
GNU General Public License v3.0
1.12k stars 137 forks source link

`set_wallpaper` is called each time `variety --pause` and `variety --resume` is executed #691

Open KAGEYAM4 opened 3 months ago

KAGEYAM4 commented 3 months ago

Version of Variety 0.8.12

Describe the bug variety is calling set_wallpaper when variety --pause, variety --resume is executed.

To Reproduce

  1. modify set_wallpaper script and add this notify-send "wallpaper changed"
  2. execute variety --pause
  3. execute variety --resume

OBSERVAION - two notification will be created, means - set _wallpaper was called two times.

My config for set_wallpaper

swww img "$3" #\
#--transition-type grow \
#--transition-duration 2 \
#--transition-step 255 \
#--transition-fps 144 \
#--invert-y \
#--transition-pos "$( hyprctl cursorpos )"

notify-send "wallpaper Changed"

Desktop environment and version Hyprland v0.37.1

OS name and version Linux ArchLinux 6.8.1-zen1-1-zen