]> git.somenet.org - pub/jan/scripts.git/blob - screenoff.sh
workaround to start stuff in kde
[pub/jan/scripts.git] / screenoff.sh
1 #!/bin/bash
2
3 sleep 1
4 xset dpms force off
5 #if [[ $1 != "bg" ]] ; then 
6 #       echo $0 $*
7 #       $0 "bg" $* &
8 #       exit 1
9 #else
10 ##      echo "starting ..."
11 #       shift 1
12 #
13 #       touch  "/tmp/${USER}_screentlock.run"
14 #
15 #       while [[ -e "/tmp/${USER}_screentlock.run" ]] ; do
16 #               sleep 30
17 ##              echo "check ..."
18 #               if [[ "`qdbus org.freedesktop.ScreenSaver /org/freedesktop/ScreenSaver GetActive`" == "true" ]]; then
19 #                       xset dpms force off
20 #               fi
21 #       done
22 #
23 ##      echo "exitting."
24 #fi