Disable screensaver when using VLC

To disable an annoying bug when watching videos on VLC seems to require a command or script which disables screensaver. The command is

xset s off

If making a script, the script is

#! /bin/sh
xset s off

… and make the script executable

chmod +x disable-screensaver.sh