Skip to content

🌖 Bash and GTK approach to dynamic wallpaper for tealinuxos and other XFCE4 based OS 🍵

License

Notifications You must be signed in to change notification settings

doscom-2018/tealinux-dynamic-wallpaper

Repository files navigation

Dynamic-Wallpaper for TealinuxOS

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.

Dependency

  • 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

Installation

  • Clone this repo or download zip
  • Use default installer sudo ./install.sh

Configuration

  • You can change wallpaper by editing dynamic-wallpaper.sh wallpaper path at wppath=
  • Wallpaper MUST consist of 16 images that correspond to dawn, sunrise, noon, sunset, dusk, nightfall, and midnight. dynamic-wallpaper supports jpg, jpeg, png

Using dynamic-wallpaper

  • After successful installation and proper reboot, you need to enable dynamic-wallpaper.
  • Go to menu, look for Dynamic Wallpaper and click the Enable button. the effect might take few seconds.
  • To disable dynamic-wallpaper, go to menu > Dynamic Wallpaper and click the Disable button.
  • After disabling dynamic-wallpaper, nothing will happend. Change your wallpaper manually!
  • By default, dynamic-wallpaper set location city to Semarang and country ID you can change by going to menu > Dynamic Wallpaper > Config.
  • Set city by A city name. Example: London and country A country name or 2 character alpha ISO 3166 code. Examples: GB or United Kindom check ISO 3166

Using MacOS dynamic wallpaper

  • 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= at dynamic-wallpaper.sh

Working principle

  • 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

Some image copyright goes to the respective owner

About

🌖 Bash and GTK approach to dynamic wallpaper for tealinuxos and other XFCE4 based OS 🍵

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published