X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=sidebyside;f=xsetbg-ping;h=3c113494e2a26d8207e0bd85f86270b434e473a4;hb=e721cb6c438a331697916deae8fd7e47b45b30dd;hp=d064b129727850e7effa911f64a2d0805e464443;hpb=f23ef0b931066b836b695d200b564cf8436995a5;p=xsetbg.git 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