Prerequist: hyprpaper should change wallpaper instantly, without any animation.
TEST: create an array of sliced images and set them as wallpaper sequentially to see if it simulate animation.
Use hyprpaper on hyprland to achieve wallpaper scroll effect on workspace switch.
- Use QuickJs
- Listen for workspace change event in hyprland using the socket program as sub-process. -- It will optional so user can use socket or bind the program to key-bind corresponding to workspace switch.
- Listen for workspace switch, creation and deletion.
- The scroll amount depends on number of workspace.
- The number of sliced images switch corresponds to scroll amount.
- Triggers on workspace switch.
- Use hyprctl to find current workspace, last workspace.
- Create multiple images from one Image.
- Each image will be shifted by one pixel.
- Image must be of higher resolution than the display monitor screen.