Didier Casse wrote:
here's the contents of my ~/bin/ss.sh script, which is bound both to an EAP in my ibar and engage, and also to the ScrlLk button on my keyboard: -------- cut --------- #!/bin/sh ss=`ps auxgw | grep screensaver| grep -v grep` if [ "x$ss" == "x" ] then /usr/bin/X11/xscreensaver -nosplash -no-capture-stderr 2>&1 > /dev/null & sleep 1 fi /usr/bin/X11/xscreensaver-command -activate 2>&1 > /dev/null & --------- cut ---------- the -no-capture-stderr is necessary to get rid of the 'unknown ClientMessage received: "WM_PROTOCOLS"' garbage that was showing up periodically on my screen, while the screensaver was active. dunno what that was all about... and don't care... i just wanted it gone. (what's up with those xscreensaver coder buttheads, to ignore redirection of stderr, anyway?) |
