aboutsummaryrefslogtreecommitdiff
path: root/scripts/paperwm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/paperwm')
-rwxr-xr-xscripts/paperwm18
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/paperwm b/scripts/paperwm
new file mode 100755
index 00000000..c05285b8
--- /dev/null
+++ b/scripts/paperwm
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+set -uex
+
+test -f ~/.cache/paperwmpaperwm.github.com.v145.shell-extension.zip || {
+ wget https://extensions.gnome.org/extension-data/paperwmpaperwm.github.com.v145.shell-extension.zip -O ~/.cache/paperwmpaperwm.github.com.v145.shell-extension.zip
+}
+
+test -d ~/.local/share/gnome-shell/extensions/paperwm@paperwm.github.com || {
+ mkdir -p ~/.local/share/gnome-shell/extensions/paperwm@paperwm.github.com
+ cd ~/.local/share/gnome-shell/extensions/paperwm@paperwm.github.com
+ unzip ~/.cache/paperwmpaperwm.github.com.v145.shell-extension.zip
+}
+
+dconf load / <<EOF
+[org/gnome/shell]
+enabled-extensions=['paperwm@paperwm.github.com']
+EOF