A small hack to disable the screensaver while running OpenDoom.

Marco Trevisan | Treviño <mail@3v1n0.net>

--- /usr/bin/dm.old     Tue Nov  4 16:02:11 2008
+++ /usr/bin/dm Tue Nov  4 16:09:40 2008
@@ -3,6 +3,15 @@
 #export DISPLAY=:0
 #xrandr -display :0 -s 240x320 -o 1
 xrandr -s 240x320 -o 1
+#ss_timeout=$(expr "$(xset q -display :0)" : ".*timeout:[ ]*\([0-9]\+\)")
+ss_timeout=$(expr "$(xset q)" : ".*timeout:[ ]*\([0-9]\+\)")
+if [ -z "$ss_timeout" ]; then
+       ss_timeout=0
+fi
+xset s off
+#xset -display :0 s off
 /usr/games/opendoom -config ~/.opendoom/opendoom.cfg
 #xrandr -display :0 -s 480x640 -o 0
 xrandr -s 480x640 -o 0
+xset s $ss_timeout
+#xset -display :0 s $ss_timeout

