aboutsummaryrefslogtreecommitdiff
path: root/i3/bin/setbg-cloogle
diff options
context:
space:
mode:
Diffstat (limited to 'i3/bin/setbg-cloogle')
-rwxr-xr-xi3/bin/setbg-cloogle9
1 files changed, 1 insertions, 8 deletions
diff --git a/i3/bin/setbg-cloogle b/i3/bin/setbg-cloogle
index 64c3316..97e8154 100755
--- a/i3/bin/setbg-cloogle
+++ b/i3/bin/setbg-cloogle
@@ -1,14 +1,7 @@
#!/bin/bash
-function fail() {
- if [ -f ~/.bg.png ]; then
- feh --bg-max -B white ~/.bg.png
- fi
- exit -1;
-}
-
# Test internet
-timeout 4 wget -q --spider http://cloogle.org || fail
+timeout 4 wget -q --spider http://cloogle.org || setbg-backup
stdbuf -i0 -o0 -e0 cloogle_stats.py | while read request
do