Skip to content

Commit

Permalink
V6 KDE Integration & Gnome 30mn transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Christophe LAVIE committed Aug 10, 2019
1 parent 5a87d67 commit d195d9d
Show file tree
Hide file tree
Showing 7 changed files with 234 additions and 70 deletions.
43 changes: 31 additions & 12 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,25 +1,44 @@
# Maintainer: Christophe LAVIE <[email protected]>
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() {
cd $_gitname
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"
}

66 changes: 45 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,46 +1,70 @@
# Gnome time based mojave wallpaper with real scheludes
# Time based GNOME macOS Mojave wallpaper with real scheludes</br>& 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.</br>
Mojave dynamic wallpaper is useable as Gnome/KDE background which changes during the day/night.</br>
For Gnome, it's a timed based wallpaper with real scheludes with 30 minutes transitions.</br>
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.</br></br>


<p align="center">
<img width="480" height="270" src="gnome-kde-dynamic-wallpaper-mojave.gif">
</p>

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 &&
Expand Down
17 changes: 17 additions & 0 deletions dynamic-wallpaper-mojave-kde-git.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
post_install() {
cat << EOT

==================================================================================

Select "Dynamic" wallpaper type, put your real coordinates and your timer.

==================================================================================

EOT
}


post_upgrade() {
post_install
}

18 changes: 18 additions & 0 deletions dynamic-wallpaper-mojave-timed-gnome-git.install
Original file line number Diff line number Diff line change
@@ -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
}

Binary file added gnome-kde-dynamic-wallpaper-mojave.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d195d9d

Please sign in to comment.