You can use this script to set the background image of your mozilla firefox browser and make computer randomly choosing one of pictures you provided.
- Go to about:support in the address bar. View the section "Application Basics" ➔ Profile Directory (or "Profile Folder" on MacOS) ➔ click the button "Open Directory" (or "Show in Finder" on MacOS)
- Create a directory called chrome inside the opened directory, if it's not already there.
- Go to the chrome directory and create a directory called img. Move your image to the img directory.
- Now you could
git clone
the repo to the chrome folder - Make
swapimage.py
executable and add to crontab - Go to the url about:config, accept the risk (we will not really do anything harmful here, nothing to worry about), and in the Search Bar, paste toolkit.legacyUserProfileCustomizations.stylesheets, and set the value to true. This tells Firefox to load the CSS file at startup.
Inside profile directory:
mkdir chrome
cd chrome
git clone https://github.com/miki164/firefox-backgroundimg-swaper.git .
chmod +x swapimage.py
sudo crontab -e
Now you have to add crontab entry. Here it's a very useful Link
In my case working somethnig like that:
SHELL=/bin/bash
@reboot ~/.mozilla/firefox/aolcyudt.default-release/chrome/swapimage.py ~/.mozilla/firefox/aolcyudt.default-release/chrome/img/