new host related fixes
[distro-setup] / xl
1 #!/bin/bash
2 if pgrep gnome-screensav &>/dev/null; then
3 # this command actually starts gnome-screensaver if it isn\'t running.
4 # lololol, what crap
5 gnome-screensaver-command --exit &>/dev/null
6 fi
7 mate-screensaver-command --exit &>/dev/null
8 if ! pidof xscreensaver; then
9 pushd /
10 xscreensaver &
11 popd
12 # 1 was not long enough
13 sleep 3
14 fi
15 xscreensaver-command -activate