aboutsummaryrefslogtreecommitdiff
path: root/desktop/i3/doinst.sh
diff options
context:
space:
mode:
authorEugene Wissner <belka.ew@gmail.com>2010-07-29 23:17:53 -0500
committerErik Hanson <erik@slackbuilds.org>2010-07-31 22:31:51 -0500
commitdd30c9a90adcaf8b59ce0ddb6a14d255d3f00ad1 (patch)
tree2e633183f45363d256e9f9181d2242dc177832fc /desktop/i3/doinst.sh
parent88501b2b4ecf73a43ebe28ff641f21f46b6ee778 (diff)
desktop/i3: Added (an improved dynamic tiling window manager)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'desktop/i3/doinst.sh')
-rw-r--r--desktop/i3/doinst.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/desktop/i3/doinst.sh b/desktop/i3/doinst.sh
new file mode 100644
index 0000000000000..935f39f3577d1
--- /dev/null
+++ b/desktop/i3/doinst.sh
@@ -0,0 +1,15 @@
+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
+