Checks the recent tweets of x user every x seconds, and if a new image has been tweeted, sets the desktop wallpaper to it.
Note: Only tested/works on Win10
-
Get Twitter Developer account
-
Create project, app, and get the bearer token
-
Set
bearer_token
insecrets-example.py
and rename the file tosecrets.py
-
Install requirements and run
main.py
- (Optional) Add a batch script to
shell:startup
with[python interpreter path] [path to main.py]
to run the script on startup.
- (Optional) Add a batch script to
How to run script on startup silently
- Create a shortcut in
shell:startup
with this "Location of the item":
wscript.exe "[Location of this repo]\invisible.vbs" "[Location of this repo]\startup_script.bat"
- Set the location of the repo in
startup_script_example.bat
and rename it tostartup_script.bat
To shutdown script, use
taskkill /IM pythonw.exe /F
To find out if script is running, usetasklist /FI "IMAGENAME eq pythonw.exe"