Skip to main content

Create fresh, personal AI painted wallpapers

Project description

✨ AI Wallpaper

Get fresh, personal AI painted wallpapers daily

Features

  • Get fresh, personal wallpapers painted for you by khoj ai
  • Automatically weaves your current city, moon phase, weather and (even recent experiences!) into the painting
  • Updates your Android or Mac wallpaper automatically
  • Schedule it to run every day and night
  • Customize the wallpapers by telling khoj what styles and information to use

Prequisites

Install

  1. Download and Install

     # Clone the repository
     git clone https://github.com/debajum/ai-wallpaper
    
     # Install dependencies
     cd ai-wallpaper && pip install .
    
  2. Run any of the following commands to paint and update your wallpaper

    # Minimal
    KHOJ_API_KEY=<YOUR_KHOJ_API_KEY> python src/aiwall/paper.py
    
    # With Custom Prompt
    KHOJ_API_KEY=<YOUR_KHOJ_API_KEY> python src/aiwall/paper.py "Generate a wallpaper based on the latest news here"
    
    # With Custom Wallpaper File Path
    KHOJ_API_KEY=<YOUR_KHOJ_API_KEY> WALLPAPER_PATH="~/Pictures/wallpaper.png" python src/aiwall/paper.py
    
    # With Self-hosted Khoj
    KHOJ_HOST="http://localhost:42100" python src/aiwall/paper.py
    

Extensions

Automatically get a fresh and personal wallpaper painted for you every day and night

  • Create a simple shell script to call the AI wallpaper creation command
     cd /path/to/ai/wallpaper/folder/
     echo "#!/bin/sh\nKHOJ_API_KEY=<YOUR_KHOJ_API_KEY> python $PWD/src/aiwall/paper.py" > wallpaper.sh
     chmod +x wallpaper.sh
    
  • On Android: Use termux-job-scheduler on Termux to get yourself a fresh and personal wallpaper painted every 12 hours
     # Install termux-job-scheduler to trigger script at a regular interval
     pkg install termux-job-scheduler
     # Make Khoj paint you a new wallpaper every 12 hours
     termux-job-scheduler -s /path/to/ai/wallpaper/folder/wallpaper.sh --period-ms 43200000 --persisted true
     # Optional, check that the script is active
     # termux-job-scheduler -p
    
    Note: You can use Tasker + Termux:Tasker or other automations apps to trigger the Wallpaper script as well
  • On Mac: Use Cron to get yourself a fresh and personal wallpaper painted every 12 hours
     # Open crontab in edit mode
     crontab -e
    
     # Add below snippet to your crontab
     # 0 */12 * * /path/to/ai/wallpaper/folder/wallpaper.sh
    
     # Optional, check that the script is active
     # crontab -l
    

Weave experiences from your notes into the Wallpapers

The AI wallpaper script can automatically incorporate any recent experiences from your notes into it's paintings. To use this you will need to sync your notes with Khoj.

LICENSE

This program is free software; it is distributed under the GNU General Public License v3.

GPLv3 © debanjum

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai_wallpaper-0.1.dev14.tar.gz (20.4 kB view details)

Uploaded Source

Built Distribution

ai_wallpaper-0.1.dev14-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

Details for the file ai_wallpaper-0.1.dev14.tar.gz.

File metadata

  • Download URL: ai_wallpaper-0.1.dev14.tar.gz
  • Upload date:
  • Size: 20.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for ai_wallpaper-0.1.dev14.tar.gz
Algorithm Hash digest
SHA256 2f6fbe1e911e192efd60a7e185d6a056639479af01149dc955e1e8fb612bc274
MD5 a07ad7ac50e9059502f07b22482df8a8
BLAKE2b-256 21d874b3d00ec26895803e8c946e1b3b859b41f816c6a3976d72fe78b3a93a74

See more details on using hashes here.

File details

Details for the file ai_wallpaper-0.1.dev14-py3-none-any.whl.

File metadata

File hashes

Hashes for ai_wallpaper-0.1.dev14-py3-none-any.whl
Algorithm Hash digest
SHA256 cbe5cabc1a123d5f868d6ab5522400db9b6b538ffa21f1686be180bf3996c918
MD5 ec561f33a21f7851e5f939bbb44f5992
BLAKE2b-256 b076f05339f5bd2ffd369e5354eecb95edbec00738b7ae36074f9d67976a2d07

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page