From 0ddb5f420bb494c6bee500a00922fd83e3b35887 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Tue, 28 Nov 2017 16:21:03 -0500 Subject: [PATCH] Changes --- dunst/dunstrc | 8 ++++---- zsh/borg.zsh | 7 ++++++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/dunst/dunstrc b/dunst/dunstrc index f0f00c0..5920bd6 100644 --- a/dunst/dunstrc +++ b/dunst/dunstrc @@ -134,16 +134,16 @@ # xev might be helpful to find names for keys # close notification - close = mod4+m + #close = mod4+m # close all notifications - close_all = mod4+shift+m + #close_all = mod4+shift+m # redisplay last message(s) - history = mod4+n + #history = mod4+n # context menu - context = mod4+shift+i + #context = mod4+shift+i [urgency_low] # IMPORTANT: colors have to be defined in quotation marks. diff --git a/zsh/borg.zsh b/zsh/borg.zsh index 839a849..0361521 100644 --- a/zsh/borg.zsh +++ b/zsh/borg.zsh @@ -19,7 +19,12 @@ b-create() { if command -v sudo > /dev/null; then SUDO="$(command -v sudo)" fi - "$SUDO" "/home/stonewareslord/syncthing/me/backup/$(hostname)/backup" + local IGNORE_FILE="/tmp/$(uuidgen)" + cat /home/stonewareslord/syncthing/me/backup{,/"$(hostname)"}/nobackup > "$IGNORE_FILE" + if [[ -f "/home/stonewareslord/syncthing/me/backup/$(hostname)/mount" ]]; then + "$SUDO" "/home/stonewareslord/syncthing/me/backup/$(hostname)/mount" + fi + "$SUDO" borg create -vpsx --exclude-caches --compression lzma,7 --exclude-from "$IGNORE_FILE" $BORG_REPO::$(hostname)-$(uuidgen) / /boot } b-rename() { borg rename -v "$BORG_REPO::$1" "$2"