Get fresh, personal AI painted wallpapers daily
pip install ai-wallpaper && KHOJ_API_KEY=<YOU_KHOJ_API_KEY> aiwall
Day | Night |
---|---|
https://github.com/debanjum/ai-wallpaper/assets/6413477/823c1624-6452-472e-8786-4cb79bcfa029
KHOJ_API_KEY=<YOUR_KHOJ_API_KEY> aiwall
KHOJ_API_KEY=<YOUR_KHOJ_API_KEY> aiwall "Generate a wallpaper based on the latest news here"
KHOJ_API_KEY=<YOUR_KHOJ_API_KEY> WALLPAPER_PATH="~/Pictures/wallpaper.png" aiwall
KHOJ_HOST="http://localhost:42100" aiwall
echo "#!/bin/sh\nKHOJ_API_KEY=<YOUR_KHOJ_API_KEY> aiwall" > wallpaper.sh
chmod +x wallpaper.sh
# 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 aiwall --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
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.
Download and Install
# Clone the repository
git clone https://github.com/debajum/ai-wallpaper
# Install dependencies
cd ai-wallpaper && pip install .
Edit application
Run any of the following commands to paint using your updated application
# 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
This program is free software; it is distributed under the GNU General Public License v3.
GPLv3 Β© debanjum