Browse Source

Merge branch 'master' of github.com:LukeSmithxyz/mutt-wizard

pull/912/head
Luke Smith 1 year ago
parent
commit
57e6d292a1
No known key found for this signature in database GPG Key ID: 4C50B54A911F6252
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      bin/mailsync
  2. +1
    -1
      bin/mw

+ 1
- 1
bin/mailsync View File

@@ -43,7 +43,7 @@ case "$(uname)" in
displays="$(echo "$pgrepoutput" | grep -wo "[0-9]*:[0-9]\+" | sort -u)"
[ -z "$displays" ] && [ -d /tmp/.X11-unix ] && displays=$(cd /tmp/.X11-unix && for x in X*; do echo ":${x#X}"; done)

notify() { [ -n "$pgrepoutput" ] && for x in ${displays:-0:}; do
notify() { [ -n "$pgrepoutput" ] && for x in ${displays:-:0}; do
export DISPLAY="$x"
notify-send --app-name="mutt-wizard" "$1" "$2"
done ;}


+ 1
- 1
bin/mw View File

@@ -217,7 +217,7 @@ togglecron() { cron="$(mktemp)"
sed -ibu /mailsync/d "$cron"; rm -f "$cron"bu
else
echo "Adding automatic mailsync every ${cronmin:-10} minutes..."
echo "*/${cronmin:-10} * * * * $prefix/bin/mailsync -q" >> "$cron"
echo "*/${cronmin:-10} * * * * $prefix/bin/mailsync" >> "$cron"
fi &&
crontab "$cron"; rm -f "$cron" ;}



Loading…
Cancel
Save