#!/bin/sh # Author: Nicolas Berthier # Last modified: Wed May 27 13:32:29 2009 # Comment: Forces the screen to go to standby mode. #need to sleep a second here, else it does not work : why ? sleep 1; if [ "$1" == "lock" ]; then xscreensaver-command -lock; else xscreensaver-command -activate; fi; exec xset dpms force off;