From c0cdf07087cfe9e06e63da5f3fd9ddfa6c290907 Mon Sep 17 00:00:00 2001 From: Drtan Samos Date: Mon, 30 Dec 2013 20:25:58 +0100 Subject: parabola-gnome-1.0-4: The installation script. --- ~drtan/parabola-gnome/PKGBUILD | 10 ++++++---- ~drtan/parabola-gnome/parabola-gnome.install | 29 ++++++++++++++++++++++++++++ ~drtan/parabola-gnome/parabola.xml | 10 +++++++++- 3 files changed, 44 insertions(+), 5 deletions(-) create mode 100644 ~drtan/parabola-gnome/parabola-gnome.install (limited to '~drtan/parabola-gnome') diff --git a/~drtan/parabola-gnome/PKGBUILD b/~drtan/parabola-gnome/PKGBUILD index e3f3b62e1..c0f9d3e97 100644 --- a/~drtan/parabola-gnome/PKGBUILD +++ b/~drtan/parabola-gnome/PKGBUILD @@ -2,16 +2,18 @@ pkgname=parabola-gnome pkgver=1.0 -pkgrel=2 -pkgdesc="A default GNOME configuration for Parabola GNU/Linux-libre" +pkgrel=4 +pkgdesc="The GNOME configuration for Parabola GNU/Linux-libre" arch=('any') url="https://parabolagnulinux.org" license=('GPL3') -depends=('parabola-artwork>=1.0') +install=$pkgname.install +depends=('dbus-glib' 'parabola-artwork>=1.0-2') source=('parabola.xml') -sha256sums=('60365e38f0aa39c63e885c7e7fbc0e0e0f78eff93aecee9977ec832eb2447950') +sha256sums=('7d9e3d67663f5b8f1ce9edf47bd74e3ea70d3a33c37318d08f5939a75b9efb23') package() { install -d "${pkgdir}/usr/share/gnome-background-properties" install -m644 parabola.xml "${pkgdir}/usr/share/gnome-background-properties/" } + diff --git a/~drtan/parabola-gnome/parabola-gnome.install b/~drtan/parabola-gnome/parabola-gnome.install new file mode 100644 index 000000000..8d87c609a --- /dev/null +++ b/~drtan/parabola-gnome/parabola-gnome.install @@ -0,0 +1,29 @@ +post_install() { + # Change default wallpaper + dbus-launch gsettings set org.gnome.desktop.background picture-uri file:///usr/share/parabola/artwork/stripes.png + dbus-launch gsettings set org.gnome.desktop.background picture-options zoom + + # Change default lock screen wallpaper. + dbus-launch gsettings set org.gnome.desktop.screensaver picture-uri file:///usr/share/parabola/artwork/stripes-desaturated.png + dbus-launch gsettings set org.gnome.desktop.screensaver picture-options zoom +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + # Reset default wallpaper to default for GNOME (if the user didn't choose some other). + if [ $(dbus-launch gsettings get org.gnome.desktop.background picture-uri) == "file:///usr/share/parabola/artwork/stripes.png" ] + then + dbus-launch gsettings reset org.gnome.desktop.background picture-uri + dbus-launch gsettings reset org.gnome.desktop.background picture-options + fi + + # Reset default lock screen wallpaper to default for GNOME (if the user didn't choose some other). + if [ $(dbus-launch gsettings get org.gnome.desktop.screensaver picture-uri) == "file:///usr/share/parabola/artwork/stripes.png" ] + then + dbus-launch gsettings reset org.gnome.desktop.screensaver picture-uri + dbus-launch gsettings reset org.gnome.desktop.screensaver picture-options + fi +} diff --git a/~drtan/parabola-gnome/parabola.xml b/~drtan/parabola-gnome/parabola.xml index cb0229d5c..ca0b5f9ff 100644 --- a/~drtan/parabola-gnome/parabola.xml +++ b/~drtan/parabola-gnome/parabola.xml @@ -1,7 +1,7 @@ - + Stripes /usr/share/parabola/wallpapers/stripes.png zoom @@ -9,4 +9,12 @@ #ffffff solid + + Stripes Desaturated + /usr/share/parabola/wallpapers/stripes-desaturated.png + zoom + #ffffff + #ffffff + solid + -- cgit v1.2.3