summaryrefslogtreecommitdiff
path: root/~drtan/parabola-gnome/parabola-gnome.install
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-02-18 01:56:34 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-02-18 01:56:34 +0000
commit8185891e28635bdb83fdf4ba4391030912dae596 (patch)
tree66a946535bdd228514750233b2cc99dd1866ff64 /~drtan/parabola-gnome/parabola-gnome.install
parent60a11f87366fdfbd114cdc91ff813518858e5f8d (diff)
Tue Feb 18 01:56:27 UTC 2014
Diffstat (limited to '~drtan/parabola-gnome/parabola-gnome.install')
-rw-r--r--~drtan/parabola-gnome/parabola-gnome.install29
1 files changed, 29 insertions, 0 deletions
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
+}