commit d65f40e565f7b1b17afa0e7c4ae23a2f816e3dde
parent 54c9cbfaf14de45577bce9dcdcd17fe569023a01
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Fri, 14 Dec 2018 17:04:49 -0500
Rename maildir in more files
Diffstat:
5 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/links/.notmuch-config b/links/.notmuch-config
@@ -11,7 +11,7 @@
# configured here named ".notmuch".
#
[database]
-#path=/Users/adamsgaard/Mail
+#path=/Users/adamsgaard/mail
# User configuration
#
diff --git a/links/bin/i3status-mpc.sh b/links/bin/i3status-mpc.sh
@@ -10,7 +10,7 @@ do
then
dat="$(mpc current -h $host -f '[%artist%]'): $(mpc current -h $host -f '[%title%]')"
fi
- newmails=$(find ~/Mail/*/INBOX/new -type f | wc -l)
+ newmails=$(find ~/mail/*/INBOX/new -type f | wc -l)
kbdlayout=$(cat ~/.kbd-layout)
mailcolor="#859900"
if [ "$newmails" -gt 0 ]; then
diff --git a/links/bin/mailcheck.sh b/links/bin/mailcheck.sh
@@ -31,9 +31,9 @@ if ps $pid &>/dev/null; then
fi
# count new mail for every maildir
-maildirnew="$HOME/Mail/*/INBOX/new/"
+maildirnew="$HOME/mail/*/INBOX/new/"
new="$(find $maildirnew -type f | wc -l | sed 's/ //g')"
-mailboxes="$(find $maildirnew -type f | sed 's/.*Mail\///' | sed 's/\/INBOX.*//')"
+mailboxes="$(find $maildirnew -type f | sed 's/.*mail\///' | sed 's/\/INBOX.*//')"
if [ $new -gt 0 ]; then
UNAMESTR=`uname`
diff --git a/links/bin/mailstatus.sh b/links/bin/mailstatus.sh
@@ -1,11 +1,11 @@
#!/bin/bash -e
-maildir=~/Mail
+maildir=~/mail
if [ ! -d $maildir ]; then
exit 0
fi
newmails=$(find $maildir/*/{INBOX,geodatahub}/new -type f)
numbernewmails=$(echo $newmails | wc -w | sed 's/ *//')
-mailboxes="$(echo $newmails | tr ' ' '\n' | sed 's/.*Mail\///' |
+mailboxes="$(echo $newmails | tr ' ' '\n' | sed 's/.*mail\///' |
sed 's/\/INBOX.*//' | sed 's/adamsgaard\/geodatahub.*/geodatahub/')"
mailcolor="#859900"
diff --git a/misc_code/bitbar-plugins/mail.5s.sh b/misc_code/bitbar-plugins/mail.5s.sh
@@ -1,11 +1,11 @@
#!/bin/bash
-maildir=~/Mail
+maildir=~/mail
if [ ! -d $maildir ]; then
exit 0
fi
newmails=$(find $maildir/*/{INBOX,geodatahub}/new -type f)
numbernewmails=$(echo $newmails | wc -w | sed 's/ *//')
-mailboxes="$(echo $newmails | tr ' ' '\n' | sed 's/.*Mail\///' |
+mailboxes="$(echo $newmails | tr ' ' '\n' | sed 's/.*mail\///' |
sed 's/\/INBOX.*//' | sed 's/adamsgaard\/geodatahub.*/geodatahub/')"
mailcolor="#859900"