aboutsummaryrefslogtreecommitdiff
path: root/i3/bin/setbg-cloogle
diff options
context:
space:
mode:
authorCamil Staps2017-12-15 14:43:37 +0100
committerCamil Staps2017-12-15 14:43:37 +0100
commitd7ac1726781db42393676974e0dbf002998112f4 (patch)
tree654bc2acbe3a0093c90d2c6a6378055bf90ce556 /i3/bin/setbg-cloogle
parentInclude .gitignore in stow (diff)
Add setbg-backup with support for randomising a background image
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