Configurations to note:
- Notify
- Release Signal Identifier: ${batch.id}
- Signal Counter Name: ${filetype}
- Wait
- Release Signal Identifier: ${batch.id}
- Signal Counter Name: blank (to count total)
| #################################### | |
| Scripts Needed | |
| #################################### | |
| eric@eric-UX305CA:~$ cat /usr/local/bin/wallpaperSwitcher | |
| #! /bin/bash | |
| PID=$(pgrep gnome-session) | |
| export DBUS_SESSION_BUS_ADDRESS=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$PID/environ|cut -d= -f2-) | |
| gsettings set org.gnome.desktop.background picture-uri file://"$(wprand)" | |
| eric@eric-UX305CA:~$ cat /usr/local/bin/wpdownload | |
| #! /usr/bin/python |
| #! /usr/bin/python | |
| import json | |
| import requests | |
| import os | |
| dest='/home/eric/Pictures/wallpaper/' | |
| subreddit='wallpaper' | |
| baseurl = 'http://imgur.com' | |
| r = requests.get(baseurl + '/r/%s/top.json' % subreddit) | |
| j = json.loads(r.text) |