Google-Trend-Wallpaper
A python and shell script to set the wallpaper to a wordcloud of the most trending google searches.
git clone https://github.com/shardul08/Google-Trend-Wallpaper.gitshardul08/Google-Trend-WallpaperGoogle-Trend-Wallpaper
A python and shell script to set the wallpaper to a wordcloud of the most trending google searches.
This project is inspired from process-wallpaper. You can check it out for the wordcloud of most resource hungry processes running in your system.
Dependencies
python3gsettingsorfehTo set the generated wordcloud as the wallpaperxvfbTo simulate a display and run everything in memoryfirefoxweb browser
Python dependencies
pip install -r requirements.txt
seleniumTo scrape the data from Google trendspyvirtualdisplayPython wrapper forxvfbwordcloudTo generate the wordcloudPILPython imaging library
NOTE You will need to download the webdriver for selenium. Geckodriver (webdriver for firefox) can be downloaded from here.
Setup
- Clone this repo
git clone https://github.com/shardul08/Google-Trend-Wallpaper.git
- Change directory to the repo
cd Google-Trend-Wallpaper
- Run
setup.shwith
./setup.sh
This will install all the required dependencies and set the wallpaper.
Usage
Run ./updateWallpaper.sh to update the wallpaper to the wordcloud of the latest trends.
You can set your region/country to get the trending searches in line #30 of generateWallpaper.py
You can set the number of days for which you want the trending searches in line #31 of generateWallpaper.py
NOTE If the wallpaper is not set automatically, you can set wallpaper.png as the wallpaper manually.
If you want the wallpaper to refresh/update every hour, you can add a cron job to run the script every hour.
To add a cron job, run
crontab -e
append the following
0 * * * * cd path/to/script/directory && ./updateWallpaper.sh > /tmp/wallpaper.log > 2>&1
This will refresh the wallpaper every hour. You can customize this command to refresh the wallpaper as often you want.
If you want adjust the brightness of the wallpaper you can use the dim or brighten commands:
./setBrightness.sh dim|brighten XX
Where XX is the percentage you would like to dim or brighten the image. For example ./setBrightness.sh dim 20 would dim the current wallpaper by 20% and then set the new image as your background. Again you can set wallpaper.png manually if it fails to do it automatically.
more like this
DailyWallpaperHub
多源壁纸聚合平台 · 自动归档 Bing + Unsplash 精选壁纸 · AI 视觉故事生成 · 企业微信推送 · GitHub Pages 在线画廊
meine
meine 🌒 - A CLI file manager and system utility built with Textual. It combines intuitive command parsing with rich t…
