commit 3e0fadaa1eb718f4699496b120e9d16ed2771e80 parent f5f3c699464a665d6c8614f7e5869e7e3ac3d9c8 Author: clamiax <smoppy@gmail.com> Date: Fri, 27 Jun 2014 11:45:07 +0200 Add a scrapthumb xinitrc sample which uses the new -u flag. Diffstat:
M | README.md | | | 15 | ++++++++++++++- |
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md @@ -13,7 +13,7 @@ Draw useful informations to the dwm bar. scrapthumb ---------- Get random images from Tumblr. -Example usage in ~/.xinitrc: +Some sample usages in ~/.xinitrc: # Change wallpaper each 5 minutes while true @@ -22,6 +22,19 @@ Example usage in ~/.xinitrc: sleep 5m done & + # Change wallpaper each 5 minutes by storing the source + # into /tmp/.scrapthumb (new with the -u flag) + while true + do + t="$(~/sources/scripts/scrapthumb -urn1)" + src=$(echo $t |cut -d'|' -f1) + img=$(echo $t |cut -d'|' -f2) + feh --no-fehbg --bg-fill "$img" + echo "$t" > /tmp/.scrapthumb + + sleep 5m + done & + spawncgi -------- Spawn the CGI daemon.