From 95c2d1cbda23a41cdf6e63520c7f0b825e63dd5b Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Sun, 26 Nov 2006 11:09:41 +0000 Subject: Importing xlockmore 5.22 --- app/xlockmore/etc/xlock.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 app/xlockmore/etc/xlock.sh (limited to 'app/xlockmore/etc/xlock.sh') diff --git a/app/xlockmore/etc/xlock.sh b/app/xlockmore/etc/xlock.sh new file mode 100644 index 000000000..422b25212 --- /dev/null +++ b/app/xlockmore/etc/xlock.sh @@ -0,0 +1,10 @@ +#!/bin/sh - +# Wrapper script to get better performance +# by Tim Auckland +# It simply suspends all netscape and JAVA applications and resumes them +# once xlock exits. These applications poll when idle and that is quite +# inconsiderate when you need all the cycles you can get for a good +# screensaver. +jobs=`ps -u $USER| awk '/jre/||/netscape/{print $1}'` +[ -n "$jobs" ] && trap 'kill -CONT $jobs' 0 1 2 14 15 && kill -STOP $jobs +/usr/local/bin/xlock "$@" -- cgit v1.2.3