diff --git a/PKGBUILD b/PKGBUILD index 5088f57..36335f8 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,14 +1,14 @@ # Maintainer: Christophe LAVIE -pkgname='gnome-mojave-timed-wallpaper-rs' -_gitname='gnome-mojave-timed-wallpaper' -pkgver=1 + +pkgbase='dynamic-wallpaper-mojave' +pkgname=("${pkgbase}-timed-gnome-git" "${pkgbase}-kde-git" "${pkgbase}-images-git" ) +_gitname='gnome-kde-dynamic-wallpaper-mojave' +pkgver=6 pkgrel=1 arch=('any') url="https://github.com/japamax/${_gitname}" -pkgdesc="GNOME time based Mojave wallpaper real scheludes" -depends=(gnome-shell gnome-backgrounds) -conflicts=('gnome-mojave-timed-wallpaper' 'gnome-theme-macos-mojave-meta') source=("git+https://github.com/japamax/${_gitname}") +conflicts=('gnome-mojave-timed-wallpaper' 'gnome-theme-macos-mojave-meta') sha256sums=('SKIP') pkgver() { @@ -16,10 +16,29 @@ pkgver() { git describe --tags --long | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g' } -package() { - cd "${srcdir}/${_gitname}" - install -dm755 "${pkgdir}/usr/share/backgrounds/gnome/mojave" - install -m644 ${srcdir}/${_gitname}/mojave/* "${pkgdir}/usr/share/backgrounds/gnome/mojave" - install -Dm644 mojave-timed.xml "${pkgdir}/usr/share/backgrounds/gnome/mojave-timed.xml" - install -Dm644 mojave.xml "${pkgdir}/usr/share/gnome-background-properties/mojave.xml" + package_dynamic-wallpaper-mojave-images-git() { + pkgdesc="macOS Mojave dynamic wallpaper based 16 images" + cd "${srcdir}/${_gitname}" + install -dm755 "${pkgdir}/usr/share/dynamicwallpapers/mojave/images" + install -m644 ${srcdir}/${_gitname}/mojave/* "${pkgdir}/usr/share/dynamicwallpapers/mojave/images" +} + + package_dynamic-wallpaper-mojave-timed-gnome-git() { + depends=(gnome-shell gnome-backgrounds dynamic-wallpaper-mojave-images-git) + pkgdesc="Time based GNOME macOS Mojave wallpaper with real scheludes" + install=dynamic-wallpaper-mojave-timed-gnome-git.install + cd "${srcdir}/${_gitname}" + install -dm755 "${pkgdir}/usr/share/backgrounds/gnome" + ln -s "/usr/share/dynamicwallpapers/mojave/images" "${pkgdir}/usr/share/backgrounds/gnome/mojave" + install -Dm644 mojave-timed.xml "${pkgdir}/usr/share/backgrounds/gnome/mojave-timed.xml" + install -Dm644 mojave.xml "${pkgdir}/usr/share/gnome-background-properties/mojave.xml" + } + + package_dynamic-wallpaper-mojave-kde-git() { + depends=(plasma5-wallpapers-dynamic dynamic-wallpaper-mojave-images-git) + pkgdesc="Azimuth Elevation based KDE macOS Mojave wallpaper" + install=dynamic-wallpaper-mojave-kde-git.install + cd "${srcdir}/${_gitname}" + install -Dm644 mojave.json "${pkgdir}/usr/share/dynamicwallpapers/mojave/metadata.json" } + diff --git a/README.md b/README.md index 400366e..483b7d1 100644 --- a/README.md +++ b/README.md @@ -1,46 +1,70 @@ -# Gnome time based mojave wallpaper with real scheludes +# Time based GNOME macOS Mojave wallpaper with real scheludes
& Azimuth Elevation based KDE macOS Mojave wallpaper -Mojave desert wallpaper useable as gnome background which changes during the day/night. -Real scheludes with twenty minutes transitions. +Mojave dynamic wallpaper is 16 based images wallpaper.
+Mojave dynamic wallpaper is useable as Gnome/KDE background which changes during the day/night.
+For Gnome, it's a timed based wallpaper with real scheludes with 30 minutes transitions.
+For KDE, it's a Azimuth Elevation wallpaper based on real Azimuth Elevation of the Sun for the Mojave Kelso Dunes on 21/06/2019.

+ + +

+ +

-Demo: https://imgur.com/a/fP2DplN # Dependencies -* gnome-shell -* gnome-backgrounds +* Gnome + * gnome-shell + * gnome-backgrounds +* KDE + * plasma5-wallpapers-dynamic for Archlinux + * or [home: KAMiKAZOW:KDE](https://software.opensuse.org//download.html?project=home%3AKAMiKAZOW%3AKDE&package=plasma5-dynamic-wallpaper) for Opensuze + - or [GitHub: zzag/dynamic-wallpaper](https://github.com/zzag/dynamic-wallpaper) for others distros + +# Parameters +## Gnome +None but you must sync your system clock time (presented both in local time and UTC) as well as the RTC (hardware clock). +## KDE +Select "Dynamic" wallpaper type, put your real coordinates and your timer. -# Conflicts -* gnome-mojave-timed-wallpaper -* gnome-theme-macos-mojave-meta # Installation ## Users of Arch Linux Arch Linux users need only clone and build this repository. ``` -git clone https://github.com/japamax/gnome-mojave-timed-wallpaper.git -cd gnome-mojave-timed-wallpaper -makepkg -i +git clone https://github.com/japamax/gnome-kde-mojave-dynamic-wallpaper.git +cd gnome-kde-mojave-dynamic-wallpaper +makepkg -si ``` ## Users of other distros -Users of other distros can manually complete these 3 steps: +Users of other distros can manually complete these 5 steps: + +1) Copy `mojave` directory from this repo to `/usr/share/dynamicwallpapers/mojave/images` and make it readable by running the following as the root user: +``` +mkdir -p /usr/share/dynamicwallpapers/mojave/images && +cp mojave/* /usr/share/dynamicwallpapers/mojave/images && +chmod 755 /usr/share/dynamicwallpapers/mojave/images && +chmod 644 /usr/share/dynamicwallpapers/mojave/images/* +``` -1) Copy `mojave` directory from this repo to `/usr/share/backgrounds/gnome` and make it readable by running the following as the root user: +2) Link `mojave` directory from `/usr/share/dynamicwallpapers` to `/usr/share/backgrounds/gnome` by running the following as the root user: ``` -mkdir -p /usr/share/backgrounds/gnome && -cp -R mojave /usr/share/backgrounds/gnome && -chmod 755 /usr/share/backgrounds/gnome/mojave && -chmod 644 /usr/share/backgrounds/gnome/mojave/* +ln -s /usr/share/dynamicwallpapers/mojave/Images /usr/share/backgrounds/gnome/mojave ``` -2) Copy `mojave-timed.xml` from this repo to `/usr/share/backgrounds/gnome` and make it readable by running the following as the root user: +3) Copy `mojave.json` from this repo to `/usr/share/dynamicwallpapers/mojave/metadata.json` and make it readable by running the following as the root user: +``` +cp mojave.json /usr/share/dynamicwallpapers/mojave/metadata.json && +chmod 644 /usr/share/dynamicwallpapers/mojave/metadata.json +``` + +4) Copy `mojave-timed.xml` from this repo to `/usr/share/backgrounds/gnome` and make it readable by running the following as the root user: ``` cp mojave-timed.xml /usr/share/backgrounds/gnome/mojave-timed.xml && chmod 644 /usr/share/backgrounds/gnome/mojave-timed.xml ``` - -3) Copy `mojave.xml` from this repo to `/usr/share/gnome-background-properties` and make it readable by running the following as the root user: +5) Copy `mojave.xml` from this repo to `/usr/share/gnome-background-properties` and make it readable by running the following as the root user: ``` mkdir -p /usr/share/gnome-background-properties && cp mojave.xml /usr/share/gnome-background-properties/mojave.xml && diff --git a/dynamic-wallpaper-mojave-kde-git.install b/dynamic-wallpaper-mojave-kde-git.install new file mode 100644 index 0000000..e3ff4dd --- /dev/null +++ b/dynamic-wallpaper-mojave-kde-git.install @@ -0,0 +1,17 @@ +post_install() { +cat << EOT + +================================================================================== + +Select "Dynamic" wallpaper type, put your real coordinates and your timer. + +================================================================================== + +EOT +} + + +post_upgrade() { + post_install +} + diff --git a/dynamic-wallpaper-mojave-timed-gnome-git.install b/dynamic-wallpaper-mojave-timed-gnome-git.install new file mode 100644 index 0000000..1e59eb6 --- /dev/null +++ b/dynamic-wallpaper-mojave-timed-gnome-git.install @@ -0,0 +1,18 @@ +post_install() { +cat << EOT + +================================================================================== + +you must sync your system clock time (presented both in local time and UTC) as well as the RTC (hardware clock). +Consult https://wiki.archlinux.org/index.php/System_time & https://wiki.archlinux.org/index.php/OpenNTPD + +================================================================================== + +EOT +} + + +post_upgrade() { + post_install +} + diff --git a/gnome-kde-dynamic-wallpaper-mojave.gif b/gnome-kde-dynamic-wallpaper-mojave.gif new file mode 100644 index 0000000..e24e45c Binary files /dev/null and b/gnome-kde-dynamic-wallpaper-mojave.gif differ diff --git a/mojave-timed.xml b/mojave-timed.xml index a9e6ecb..ce7112e 100644 --- a/mojave-timed.xml +++ b/mojave-timed.xml @@ -2,185 +2,185 @@ 2001 - 01 - 01 - 01 - 00 - 00 + 1 + 1 + 0 + 0 + 0 - 9600 + 9000 /usr/share/backgrounds/gnome/mojave/mojave_dynamic-0000.jpg - 1200 + 1800 /usr/share/backgrounds/gnome/mojave/mojave_dynamic-0000.jpg /usr/share/backgrounds/gnome/mojave/mojave_dynamic-0300.jpg - 9600 + 9000 /usr/share/backgrounds/gnome/mojave/mojave_dynamic-0300.jpg - 1200 + 1800 /usr/share/backgrounds/gnome/mojave/mojave_dynamic-0300.jpg /usr/share/backgrounds/gnome/mojave/mojave_dynamic-0600.jpg - 2400 + 1800 /usr/share/backgrounds/gnome/mojave/mojave_dynamic-0600.jpg - 1200 + 1800 /usr/share/backgrounds/gnome/mojave/mojave_dynamic-0600.jpg /usr/share/backgrounds/gnome/mojave/mojave_dynamic-0700.jpg - 2400 + 1800 /usr/share/backgrounds/gnome/mojave/mojave_dynamic-0700.jpg - 1200 + 1800 /usr/share/backgrounds/gnome/mojave/mojave_dynamic-0700.jpg /usr/share/backgrounds/gnome/mojave/mojave_dynamic-0800.jpg - 2400 + 1800 /usr/share/backgrounds/gnome/mojave/mojave_dynamic-0800.jpg - 1200 + 1800 /usr/share/backgrounds/gnome/mojave/mojave_dynamic-0800.jpg /usr/share/backgrounds/gnome/mojave/mojave_dynamic-0900.jpg - 2400 + 1800 /usr/share/backgrounds/gnome/mojave/mojave_dynamic-0900.jpg - 1200 + 1800 /usr/share/backgrounds/gnome/mojave/mojave_dynamic-0900.jpg /usr/share/backgrounds/gnome/mojave/mojave_dynamic-1000.jpg - 2400 + 1800 /usr/share/backgrounds/gnome/mojave/mojave_dynamic-1000.jpg - 1200 + 1800 /usr/share/backgrounds/gnome/mojave/mojave_dynamic-1000.jpg /usr/share/backgrounds/gnome/mojave/mojave_dynamic-1100.jpg - 2400 + 1800 /usr/share/backgrounds/gnome/mojave/mojave_dynamic-1100.jpg - 1200 + 1800 /usr/share/backgrounds/gnome/mojave/mojave_dynamic-1100.jpg /usr/share/backgrounds/gnome/mojave/mojave_dynamic-1200.jpg - 6000 + 5400 /usr/share/backgrounds/gnome/mojave/mojave_dynamic-1200.jpg - 1200 + 1800 /usr/share/backgrounds/gnome/mojave/mojave_dynamic-1200.jpg /usr/share/backgrounds/gnome/mojave/mojave_dynamic-1400.jpg - 2400 + 1800 /usr/share/backgrounds/gnome/mojave/mojave_dynamic-1400.jpg - 1200 + 1800 /usr/share/backgrounds/gnome/mojave/mojave_dynamic-1400.jpg /usr/share/backgrounds/gnome/mojave/mojave_dynamic-1500.jpg - 2400 + 1800 /usr/share/backgrounds/gnome/mojave/mojave_dynamic-1500.jpg - 1200 + 1800 /usr/share/backgrounds/gnome/mojave/mojave_dynamic-1500.jpg /usr/share/backgrounds/gnome/mojave/mojave_dynamic-1600.jpg - 2400 + 1800 /usr/share/backgrounds/gnome/mojave/mojave_dynamic-1600.jpg - 1200 + 1800 /usr/share/backgrounds/gnome/mojave/mojave_dynamic-1600.jpg /usr/share/backgrounds/gnome/mojave/mojave_dynamic-1700.jpg - 2400 + 1800 /usr/share/backgrounds/gnome/mojave/mojave_dynamic-1700.jpg - 1200 + 1800 /usr/share/backgrounds/gnome/mojave/mojave_dynamic-1700.jpg /usr/share/backgrounds/gnome/mojave/mojave_dynamic-1800.jpg - 2400 + 1800 /usr/share/backgrounds/gnome/mojave/mojave_dynamic-1800.jpg - 1200 + 1800 /usr/share/backgrounds/gnome/mojave/mojave_dynamic-1800.jpg /usr/share/backgrounds/gnome/mojave/mojave_dynamic-1900.jpg - 6000 + 5400 /usr/share/backgrounds/gnome/mojave/mojave_dynamic-1900.jpg - 1200 + 1800 /usr/share/backgrounds/gnome/mojave/mojave_dynamic-1900.jpg /usr/share/backgrounds/gnome/mojave/mojave_dynamic-2100.jpg - 9600 + 9000 /usr/share/backgrounds/gnome/mojave/mojave_dynamic-2100.jpg - 1200 + 1800 /usr/share/backgrounds/gnome/mojave/mojave_dynamic-2100.jpg /usr/share/backgrounds/gnome/mojave/mojave_dynamic-0000.jpg diff --git a/mojave.json b/mojave.json new file mode 100644 index 0000000..b85a326 --- /dev/null +++ b/mojave.json @@ -0,0 +1,86 @@ +{ + "name": "Mojave", + "preview": "mojave_dynamic-1200.jpg", + "images": [ + { + "elevation": -30.71, + "azimuth": -11.9, + "filename": "mojave_dynamic-0000.jpg" + }, + { + "elevation": -23.41, + "azimuth": 33.84, + "filename": "mojave_dynamic-0300.jpg" + }, + { + "elevation": 4.87, + "azimuth": 64.58, + "filename": "mojave_dynamic-0600.jpg" + }, + { + "elevation": 16.2, + "azimuth": 72.36, + "filename": "mojave_dynamic-0700.jpg" + }, + { + "elevation": 28.1, + "azimuth": 79.77, + "filename": "mojave_dynamic-0800.jpg" + }, + { + "elevation": 40.3, + "azimuth": 87.45, + "filename": "mojave_dynamic-0900.jpg" + }, + { + "elevation": 52.58, + "azimuth": 96.52, + "filename": "mojave_dynamic-1000.jpg" + }, + { + "elevation": 64.55, + "azimuth": 109.71, + "filename": "mojave_dynamic-1100.jpg" + }, + { + "elevation": 74.98, + "azimuth": 136.73, + "filename": "mojave_dynamic-1200.jpg" + }, + { + "elevation": 70.02, + "azimuth": 240.04, + "filename": "mojave_dynamic-1400.jpg" + }, + { + "elevation": 58.52, + "azimuth": 257.85, + "filename": "mojave_dynamic-1500.jpg" + }, + { + "elevation": 46.32, + "azimuth": 268.39, + "filename": "mojave_dynamic-1600.jpg" + }, + { + "elevation": 34.05, + "azimuth": 276.55, + "filename": "mojave_dynamic-1700.jpg" + }, + { + "elevation": 21.97, + "azimuth": 284.00, + "filename": "mojave_dynamic-1800.jpg" + }, + { + "elevation": 10.31, + "azimuth": 291.53, + "filename": "mojave_dynamic-1900.jpg" + }, + { + "elevation": -11.02, + "azimuth": 309.05, + "filename": "mojave_dynamic-2100.jpg" + } + ] +}