Random screensaver with Linux Mint Cinnamon

If you like screensavers, probably you already installed the xscreensaver package, but in Cinnamon you don't have the option to select a random one. But we can let the crontab periodic jobs change the systems entry where the currently selected screensaver is set.

Install instructions

In a terminal launch the command
crontab -e
to edit your crontab definitions and add the following at the end of the file:
# Randomize screensaver
0 * * * * DISPLAY=:0 gsettings set org.cinnamon.desktop.screensaver xscreensaver-hack \'$(ls /usr/lib/xscreensaver | sort -R | head -n 1)\' 2>&1 | logger -t screensaver
This will change every hour the screensaver to one located in the xscreensaver package.