summaryrefslogtreecommitdiff
path: root/app/xlockmore/etc/xlock.sh
blob: 422b2521201d1d8f6899998bb0bf76ac16877515 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh -
# Wrapper script to get better performance
#	by Tim Auckland <tda10.geo@yahoo.com>
# 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 "$@"