|
|
Debian GNU/Linux at InfodromThe Universal Operating System |
Of course, you can do this with X11.
It's quite easy:
if grep -qs ^run-xmatrix /etc/X11/xdm/xdm.options; then
# kill any running xmatrix
pid=$(cat /var/run/xmatrix_0.pid 2>/dev/null)
if [ "$pid" ]; then
kill -9 $pid 2> /dev/null
fi
rm -f /var/run/xconsole_0.pid
xmatrix -root &
echo $! > /var/run/xmatrix_0.pid
fi
Sample Xsetup_0. You will have to add the following blurb to your Xstartup_0:
if grep -qs ^run-xmatrix /etc/X11/xdm/xdm.options; then
# kill any running xmatrix
pid=$(cat /var/run/xmatrix_0.pid 2>/dev/null)
if [ "$pid" ]; then
kill -9 $pid 2> /dev/null
fi
rm -f /var/run/xconsole_0.pid
fi
Sample Xstartup_0.