From: Oleg Broytman Date: Sun, 7 Feb 2010 12:23:57 +0000 (+0000) Subject: Without a pinger there is no need to test for full-screen programs. X-Git-Tag: v4.0.0~31 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=e721cb6c438a331697916deae8fd7e47b45b30dd;p=xsetbg.git Without a pinger there is no need to test for full-screen programs. git-svn-id: file:///home/phd/archive/SVN/xsetbg/trunk@37 143022c7-580b-0410-bae3-87f2bf5d3141 --- diff --git a/xsetbg-ping b/xsetbg-ping index d064b12..3c11349 100755 --- a/xsetbg-ping +++ b/xsetbg-ping @@ -1,15 +1,2 @@ #! /bin/sh - -if [ -z "$DISPLAY" ]; then - exit 0 -fi - -if xscreensaver-command -time 2>/dev/null | grep -Eq 'screen (blanked|locked)'; then - exit 0 -fi - -if ps a | grep -v grep | grep -q mplayer; then - exit 0 -fi - exec wget -q -Y off -O /dev/null http://localhost:7999/ping