diff options
author | Melvin Mawhin <mmawhin@hotmail.com> | 2018-06-29 08:05:15 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-06-30 07:00:14 +0700 |
commit | 3ca1a4b33e5c04a9cdf0803149ee59e79380ef3f (patch) | |
tree | 1705fdc923c0ff368240958c56df17dbcf69b134 /desktop/i3-gaps/doinst.sh | |
parent | f714999176377679aefb1b4089a534d19a0ad364 (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.sh | 19 |
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 |