aboutsummaryrefslogtreecommitdiff
path: root/desktop/i3-gaps/doinst.sh
diff options
context:
space:
mode:
authorMelvin Mawhin <mmawhin@hotmail.com>2018-06-29 08:05:15 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-06-30 07:00:14 +0700
commit3ca1a4b33e5c04a9cdf0803149ee59e79380ef3f (patch)
tree1705fdc923c0ff368240958c56df17dbcf69b134 /desktop/i3-gaps/doinst.sh
parentf714999176377679aefb1b4089a534d19a0ad364 (diff)
desktop/i3-gaps: Added (a tiling window manager for Linux).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/i3-gaps/doinst.sh')
-rw-r--r--desktop/i3-gaps/doinst.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/desktop/i3-gaps/doinst.sh b/desktop/i3-gaps/doinst.sh
new file mode 100644
index 0000000000000..78f4e66fda093
--- /dev/null
+++ b/desktop/i3-gaps/doinst.sh
@@ -0,0 +1,19 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+config etc/i3/config.new
+config etc/i3/config.keycodes.new
+
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi