#!/bin/bash if pgrep gnome-screensav &>/dev/null; then # this command actually starts gnome-screensaver if it isn\'t running. # lololol, what crap gnome-screensaver-command --exit &>/dev/null fi mate-screensaver-command --exit &>/dev/null if ! pidof xscreensaver; then pushd / xscreensaver & popd # 1 was not long enough sleep 3 fi xscreensaver-command -activate