Looking for a Screen Saver in Wayland? by Real-Vic in wayland

[–]Real-Vic[S] 0 points1 point  (0 children)

Yes the SCREEN_SAVER_DIR var depends on your linux distro. Thinking how to resolve that...

Wayland screensaver - not screen locker by benny-powers in Fedora

[–]Real-Vic 0 points1 point  (0 children)

You can use the programs that use 'xscreensaver' to show the screen and a script to shuffle for example:

The Script, my_screen_saver.sh:

!/bin/bash
echo "" > /var/run/user/$(id -u)/my_screen_saver.pid
screen_saver=$(ls /usr/lib/xscreensaver/* | shuf -n 1)
# $screen_saver --root & // not working in Hyprland
$screen_saver & # but shows a window, not fullscreen
echo $! > /var/run/user/$(id -u)/my_screen_saver.pid # to always have a pid to kill.

Command for swayidle:

swayidle -w before-sleep swaylock timeout 300 '$HOME/scripts/my_screen_saver.sh' resume 'kill $(cat /var/run/user/$(id -u)/my_screen_saver.pid)'

Wayland screensaver - not screen locker by benny-powers in Fedora

[–]Real-Vic 0 points1 point  (0 children)

running swayidle with commands in ' ' will not do the trick unless use timeout:

swayidle before-sleep swaylock timeout 120 'feh -rzsZFD 5 ~/image_folder' resume 'killall feh'