aboutsummaryrefslogtreecommitdiff
path: root/i3blocks
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2021-04-07 20:23:08 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2021-04-07 20:23:08 +0200
commitd8a50709a8dfb0f498367ef80c192138333aa08f (patch)
tree198c9eea86d3dcf23e3729a97ccb6d76e3c0e0cc /i3blocks
parentb3017b9ee5fdf4d79b8f3c5253cfd6ec62b31844 (diff)
downloadscripts-d8a50709a8dfb0f498367ef80c192138333aa08f.tar.gz
scripts-d8a50709a8dfb0f498367ef80c192138333aa08f.zip
Updated mail scripts for disroot account.
Diffstat (limited to 'i3blocks')
-rwxr-xr-xi3blocks/i3mailbox.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/i3blocks/i3mailbox.sh b/i3blocks/i3mailbox.sh
index b78528c..787885e 100755
--- a/i3blocks/i3mailbox.sh
+++ b/i3blocks/i3mailbox.sh
@@ -17,6 +17,7 @@ case $BLOCK_BUTTON in
esac
label=📫
+disrootInbox="$CONFIG_FOLDER_DISROOT_INBOX"
gmailInbox="$CONFIG_FOLDER_GMAIL_INBOX"
unioviInbox="$CONFIG_FOLDER_UNIOVI_INBOX"
output="$label"
@@ -26,6 +27,11 @@ syncIcon=""
output="$output$syncIcon"
shortOutput="$shortOutput$syncIcon"
+if [ -n "$disrootInbox" ]; then
+ disrootN="$(ls "$disrootInbox"/* 2>/dev/null | wc -l)"
+ output="$output Disroot: $disrootN "
+ shortOutput="$shortOutput D: $disrootN "
+fi
if [ -n "$gmailInbox" ]; then
gmailN="$(ls "$gmailInbox"/* 2>/dev/null | wc -l)"
output="$output Gmail: $gmailN "
@@ -37,6 +43,5 @@ if [ -n "$unioviInbox" ]; then
shortOutput="$shortOutput U: $unioviN "
fi
-#echo "$(cat /tmp/imapsyncicon) Gmail: $gmailN uniovi: $unioviN"
echo "${output% }"
echo "${shortOutput% }"