diff --git a/.bashrc b/.bashrc index c2aea8f..949e4dc 100644 --- a/.bashrc +++ b/.bashrc @@ -5,6 +5,9 @@ xhost +local:root > /dev/null 2>&1 use_fish=true +# ===================== PROGRAMS ===================== +export MANPAGER="sh -c 'sed -e s/.\\\\x08//g | bat -l man -p'" + # ===================== PATHS ===================== if [ -d "$HOME/bin" ] ; then export PATH="$HOME/bin:$PATH" diff --git a/.mailcap b/.mailcap index bff9126..b34eedc 100644 --- a/.mailcap +++ b/.mailcap @@ -1,13 +1,9 @@ -### -### Begin Red Hat Mailcap -### - audio/*; mpc add %s -image/*; /usr/bin/xdg-open %s +image/*; feh %s application/msword; /usr/bin/xdg-open %s application/pdf; zathura %s -application/postscript ; /usr/bin/xdg-open %s +application/postscript ; zathura %s text/html; /usr/bin/xdg-open %s diff --git a/.notmuch-config b/.notmuch-config index 1e93cff..38a903a 100644 --- a/.notmuch-config +++ b/.notmuch-config @@ -49,8 +49,10 @@ primary_email=thexcloud@gmail.com # in the mail store. # +other_email=progin6304@gmail.com; + [new] -tags=new +tags=new; ignore=.osync_workdir # Search configuration diff --git a/Mail/.notmuch/hooks/post-new b/Mail/.notmuch/hooks/post-new index 6648d82..f5e8f92 100755 --- a/Mail/.notmuch/hooks/post-new +++ b/Mail/.notmuch/hooks/post-new @@ -1,3 +1,4 @@ #!/bin/bash -notmuch tag +main "path:thexcloud/**" -notmuch tag +progin "path:progin6304/**" \ No newline at end of file +notmuch tag +main "path:thexcloud/** AND tag:new" +notmuch tag +progin "path:progin6304/** AND tag:new" +notmuch tag -new "tag:new" diff --git a/Mail/.notmuch/hooks/pre-new b/Mail/.notmuch/hooks/pre-new index d549cb2..fd5f953 100755 --- a/Mail/.notmuch/hooks/pre-new +++ b/Mail/.notmuch/hooks/pre-new @@ -1,4 +1,3 @@ #!/bin/bash GMI="/home/pavel/Programs/miniconda3/envs/mail/bin/gmi" -(cd /home/pavel/Mail/thexcloud/ && $GMI sync) -(cd /home/pavel/Mail/progin6304/ && $GMI sync) +parallel -j0 "(cd /home/pavel/Mail/{}/ && $GMI sync)" ::: thexcloud progin6304 diff --git a/Mail/thexcloud/.gmailieer.json b/Mail/thexcloud/.gmailieer.json index 7e0101f..a2a1d94 100644 --- a/Mail/thexcloud/.gmailieer.json +++ b/Mail/thexcloud/.gmailieer.json @@ -1 +1 @@ -{"replace_slash_with_dot": true, "account": "thexcloud@gmail.com", "timeout": 600, "drop_non_existing_label": false, "ignore_empty_history": false, "ignore_tags": ["progin", "main", "new"], "ignore_remote_labels": ["CATEGORY_PROMOTIONS", "CATEGORY_SOCIAL", "CATEGORY_PERSONAL", "CATEGORY_UPDATES", "CATEGORY_FORUMS"], "remove_local_messages": true, "file_extension": ""} \ No newline at end of file +{"replace_slash_with_dot": true, "account": "thexcloud@gmail.com", "timeout": 600, "drop_non_existing_label": false, "ignore_empty_history": false, "ignore_tags": ["progin", "new", "main"], "ignore_remote_labels": ["CATEGORY_UPDATES", "CATEGORY_PROMOTIONS", "CATEGORY_PERSONAL", "CATEGORY_SOCIAL", "CATEGORY_FORUMS"], "remove_local_messages": true, "file_extension": ""} \ No newline at end of file diff --git a/bin/scripts/check-email b/bin/scripts/check-email index d4c86af..638eb99 100755 --- a/bin/scripts/check-email +++ b/bin/scripts/check-email @@ -15,7 +15,13 @@ ALL_UNREAD=$(notmuch count "$ALL_QUERY") if [ $NEW_UNREAD -gt 0 ]; then MAIN_UNREAD=$(notmuch count "tag:unread AND tag:main") PROGIN_UNREAD=$(notmuch count "tag:unread AND tag:progin") - notify-send "New Mail" "$NEW_UNREAD new messages\n$MAIN_UNREAD thexcloud@gmail.com\n$PROGIN_UNREAD progin6304@gmail.com\n$ALL_UNREAD total" + read -r -d '' NOTIFICATION < $CHECK_FILE