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
- Generate a (free) Khoj API Key or setup a self-hosted Khoj
- Install Termux to use on Android
- Requires a Mac or Android Operating System. Windows, Linux support if enough demand
⚡️ Quickstart
pip install ai-wallpaper && KHOJ_API_KEY=<YOU_KHOJ_API_KEY> aiwall
🎁 Showcase
| Day | Night |
|---|---|
https://github.com/debanjum/ai-wallpaper/assets/6413477/823c1624-6452-472e-8786-4cb79bcfa029
🪢 Customize
Minimal
KHOJ_API_KEY=<YOUR_KHOJ_API_KEY> aiwall
Uze Custom Prompt
KHOJ_API_KEY=<YOUR_KHOJ_API_KEY> aiwall "Generate a wallpaper based on the latest news here"
Use Custom Wallpaper Path
KHOJ_API_KEY=<YOUR_KHOJ_API_KEY> WALLPAPER_PATH="~/Pictures/wallpaper.png" aiwall
Use Self-Hosted Khoj
KHOJ_HOST="http://localhost:42100" aiwall
🚀 Upgrade
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
echo "#!/bin/sh\nKHOJ_API_KEY=<YOUR_KHOJ_API_KEY> aiwall" > 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 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
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.
🖥️ Develop
-
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
🔖 LICENSE
This program is free software; it is distributed under the GNU General Public License v3.
GPLv3 © debanjum
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ai_wallpaper-0.1.dev19.tar.gz.
File metadata
- Download URL: ai_wallpaper-0.1.dev19.tar.gz
- Upload date:
- Size: 20.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c068c825946eb711c05efb0ae6e46c2f1d9fb2037e938dc584f0ae67f0e1d85
|
|
| MD5 |
d7d15620b1eb347987bc42f0a8d0f358
|
|
| BLAKE2b-256 |
9bdb2e820d11930c56710bd5d5e5f5f878fd131eefa766d52234f60cca938b5f
|
Provenance
The following attestation bundles were made for ai_wallpaper-0.1.dev19.tar.gz:
Publisher:
pypi.yml on debanjum/ai-wallpaper
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ai_wallpaper-0.1.dev19.tar.gz -
Subject digest:
0c068c825946eb711c05efb0ae6e46c2f1d9fb2037e938dc584f0ae67f0e1d85 - Sigstore transparency entry: 156188597
- Sigstore integration time:
-
Permalink:
debanjum/ai-wallpaper@370cdfb19cb53106c560a57368e415fb2decf7db -
Branch / Tag:
refs/heads/master - Owner: https://github.com/debanjum
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@370cdfb19cb53106c560a57368e415fb2decf7db -
Trigger Event:
push
-
Statement type:
File details
Details for the file ai_wallpaper-0.1.dev19-py3-none-any.whl.
File metadata
- Download URL: ai_wallpaper-0.1.dev19-py3-none-any.whl
- Upload date:
- Size: 21.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48461df4ebeb2bc78d325804c344d16f00151a0874c9061334e5f1eb42fdf9e0
|
|
| MD5 |
2b4348444533b1ac768f2ad2fb56f9fb
|
|
| BLAKE2b-256 |
bea9c7b7bcdf689a6b9d574c8bcc0ece94c7b8511752fd82346cc6d1d4369031
|
Provenance
The following attestation bundles were made for ai_wallpaper-0.1.dev19-py3-none-any.whl:
Publisher:
pypi.yml on debanjum/ai-wallpaper
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ai_wallpaper-0.1.dev19-py3-none-any.whl -
Subject digest:
48461df4ebeb2bc78d325804c344d16f00151a0874c9061334e5f1eb42fdf9e0 - Sigstore transparency entry: 156188598
- Sigstore integration time:
-
Permalink:
debanjum/ai-wallpaper@370cdfb19cb53106c560a57368e415fb2decf7db -
Branch / Tag:
refs/heads/master - Owner: https://github.com/debanjum
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@370cdfb19cb53106c560a57368e415fb2decf7db -
Trigger Event:
push
-
Statement type: