This script downloads the latest XKCD comic, processes the image, and creates a custom wallpaper with additional information such as the current day, sunrise/sunset times, and a motivational message.
- XKCD Integration: Downloads the latest comic from XKCD.
- Image Processing: Crops, resizes, and enhances the comic image.
- Custom Overlay: Adds text information such as:
- Current day of the week.
- Sunrise and sunset times based on geographical coordinates.
- A motivational message generated via the
mommycommand.
- Day/Night Theme: Displays either a sun or moon icon based on the current time.
- Wallpaper Update: Automatically sets the generated image as the desktop wallpaper using
feh.
requestsPillow(PIL)ossubprocessredatetime
mommy: Provides motivational quotes.sunwait: Calculates sunrise and sunset times.feh: Sets the desktop wallpaper.
- Update paths
- Change coordinates for sunwait
- Run the script
python script.py
- Fork the repository.
- Create a new branch
git checkout -b feature-branch - Make your changes and commit them
git commit -am 'Add new feature' - Push to your branch
git push origin feature-branch - Create a pull request.
git clone https://github.com/mzums/arch-i3wm-rice
