Bash approach to dynamic wallpaper for tealinuxos and other XFCE4 based os like xubuntu. dynamic-wallpaper can get data from api that used to sync corresponding sun and moon time to image.
- curl
sudo apt install curl
- jq
sudo apt install jq
- libgtk3
sudo apt install libgtk-3-dev
- pkg-config
sudo apt install pkg-config
- cmake
sudo apt install cmake
summary sudo apt update && sudo apt install curl jq libgtk-3-dev pkg-config cmake
you might need to install basic compiler too sudo apt install build-essential
- Clone this repo or download zip
- Use default installer
sudo ./install.sh
- You can change wallpaper by editing
dynamic-wallpaper.sh
wallpaper path atwppath=
- Wallpaper MUST consist of 16 images that correspond to
dawn, sunrise, noon, sunset, dusk, nightfall, and midnight
. dynamic-wallpaper supportsjpg, jpeg, png
- After successful installation and proper reboot, you need to enable dynamic-wallpaper.
- Go to menu, look for
Dynamic Wallpaper
and click theEnable
button. the effect might take few seconds. - To disable dynamic-wallpaper, go to
menu > Dynamic Wallpaper
and click theDisable
button. - After disabling dynamic-wallpaper, nothing will happend. Change your wallpaper manually!
- By default, dynamic-wallpaper set location city to
Semarang
and countryID
you can change by going tomenu > Dynamic Wallpaper > Config
. - Set city by
A city name. Example: London
and countryA country name or 2 character alpha ISO 3166 code. Examples: GB or United Kindom
check ISO 3166
- Download MacOS dynamic wallpaper
example.heic
file - Install libheif
sudo apt install libheif-examples
- Check if valid
heif-info example.heic
and make sure it contain 16 images! - Convert to jpg
heif-convert example.heic example.jpg
- Set your wallpaper path to
wppath=
atdynamic-wallpaper.sh
- Dynamic-wallpaper get time data from api, then time converted to minutes. this become seed
- Dynamic-wallpaper adjust image based on seed.
- Example :
SEED | START | STOP | FILE | DESCR |
---|---|---|---|---|
262 | 04:12 | 04:22 | wp16 | |
339 | 04:22 | 05:39 | wp01 | Dawn |
410 | 05:39 | 06:50 | wp02 | Sunrise |
481 | 06:50 | 08:01 | wp03 | |
552 | 08:01 | 09:12 | wp04 | |
623 | 09:12 | 10:23 | wp05 | |
696 | 10:23 | 11:36 | wp06 | |
736 | 11:36 | 12:16 | wp07 | Noon |
776 | 12:16 | 12:56 | wp08 | |
816 | 12:56 | 13:36 | wp09 | |
856 | 13:36 | 14:16 | wp10 | |
897 | 14:16 | 14:57 | wp11 | |
1052 | 14:57 | 17:32 | wp12 | Sunset |
1142 | 17:32 | 19:02 | wp13 | Dusk |
1416 | 19:02 | 23:36 | wp14 | Nightfall |
252 | 23:36 | 04:12 | wp15 | Midnight |