summaryrefslogtreecommitdiff
path: root/~drtan/parabola-gnome
diff options
context:
space:
mode:
Diffstat (limited to '~drtan/parabola-gnome')
-rw-r--r--~drtan/parabola-gnome/PKGBUILD19
-rw-r--r--~drtan/parabola-gnome/parabola-gnome.install29
-rw-r--r--~drtan/parabola-gnome/parabola.xml20
3 files changed, 68 insertions, 0 deletions
diff --git a/~drtan/parabola-gnome/PKGBUILD b/~drtan/parabola-gnome/PKGBUILD
new file mode 100644
index 000000000..e0762987b
--- /dev/null
+++ b/~drtan/parabola-gnome/PKGBUILD
@@ -0,0 +1,19 @@
+# Maintainer: Drtan Samos <lashdu@drtan.twilightparadox.com>
+
+pkgname=parabola-gnome
+pkgver=1.0
+pkgrel=5
+pkgdesc="The GNOME configuration for Parabola GNU/Linux-libre"
+arch=('any')
+url="https://parabolagnulinux.org"
+license=('GPL3')
+install=$pkgname.install
+depends=('dbus-glib' 'parabola-artwork>=1.0-2')
+source=('parabola.xml')
+sha256sums=('27f1580c8751c272eb24bc1426cb3a9395c3fa072c89cbf28fd89061fe15a82f')
+
+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
new file mode 100644
index 000000000..625bf241c
--- /dev/null
+++ b/~drtan/parabola-gnome/parabola.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE wallpapers SYSTEM "gnome-wp-list.dtd">
+<wallpapers>
+ <wallpaper deleted="false">
+ <name>Stripes</name>
+ <filename>/usr/share/parabola/artwork/stripes.png</filename>
+ <options>zoom</options>
+ <pcolor>#ffffff</pcolor>
+ <scolor>#ffffff</scolor>
+ <shade_type>solid</shade_type>
+ </wallpaper>
+ <wallpaper deleted="false">
+ <name>Stripes Desaturated</name>
+ <filename>/usr/share/parabola/artwork/stripes-desaturated.png</filename>
+ <options>zoom</options>
+ <pcolor>#ffffff</pcolor>
+ <scolor>#ffffff</scolor>
+ <shade_type>solid</shade_type>
+ </wallpaper>
+</wallpapers>