summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.config/alacritty/alacritty.yml2
-rw-r--r--.config/dunst/dunstrc6
-rw-r--r--.config/mutt/accounts/1-main.muttrc1
-rw-r--r--.config/mutt/accounts/2-gmail_br.muttrc4
-rw-r--r--.config/mutt/accounts/3-gmail_oon.muttrc1
-rw-r--r--.config/mutt/accounts/4-gmail_tos.muttrc3
-rw-r--r--.config/mutt/accounts/5-ss_perso.muttrc1
-rw-r--r--.config/mutt/accounts/6-ss_exploit.muttrc1
-rw-r--r--.config/mutt/accounts/7-ss_support.muttrc1
-rw-r--r--.config/mutt/accounts/sig_gmail_br1
-rw-r--r--.config/mutt/accounts/sig_gmail_oon1
-rw-r--r--.config/mutt/accounts/sig_gmail_tos2
-rw-r--r--.config/mutt/accounts/sig_main1
-rw-r--r--.config/mutt/accounts/sig_ss_perso2
-rwxr-xr-x.local/bin/fetch_mail.sh14
-rwxr-xr-x.local/bin/status/sb-mailbox14
16 files changed, 35 insertions, 20 deletions
diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml
index 2bc70c5..d006fcc 100644
--- a/.config/alacritty/alacritty.yml
+++ b/.config/alacritty/alacritty.yml
@@ -257,7 +257,7 @@ colors:
# Example:
# `- { index: 16, color: '#ff00ff' }`
#
- #indexed_colors: []
+ # indexed_colors: []
# Visual Bell
#
diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc
index 655f6b0..fd9c760 100644
--- a/.config/dunst/dunstrc
+++ b/.config/dunst/dunstrc
@@ -113,9 +113,9 @@
# NOTE: It might be helpful to run dunst -print in a terminal in order
# to find fitting options for rules.
-#[espeak] # >shutup
-# summary = "*" # >shutup
-# script = /home/jozan/.local/bin/dunst_espeak.sh # >shutup
+[espeak] # >shutup
+ summary = "*" # >shutup
+ script = /home/jozan/.local/bin/dunst_espeak.sh # >shutup
#[script-test]
# summary = "*script*"
diff --git a/.config/mutt/accounts/1-main.muttrc b/.config/mutt/accounts/1-main.muttrc
index a62092a..7f61945 100644
--- a/.config/mutt/accounts/1-main.muttrc
+++ b/.config/mutt/accounts/1-main.muttrc
@@ -9,6 +9,7 @@ set header_cache = $XDG_RUNTIME_DIR/mutt/main/headers
set message_cachedir = $XDG_RUNTIME_DIR/mutt/main/bodies
set mbox_type = Maildir
set crypt_autosign = no
+set signature = $XDG_CONFIG_HOME/mutt/sig_main
bind index,pager gg noop
bind index,pager g noop
diff --git a/.config/mutt/accounts/2-gmail_br.muttrc b/.config/mutt/accounts/2-gmail_br.muttrc
index 0a044b7..d1a723a 100644
--- a/.config/mutt/accounts/2-gmail_br.muttrc
+++ b/.config/mutt/accounts/2-gmail_br.muttrc
@@ -9,6 +9,7 @@ set header_cache = $XDG_RUNTIME_DIR/mutt/gmail_br/headers
set message_cachedir = $XDG_RUNTIME_DIR/mutt/gmail_br/bodies
set mbox_type = Maildir
set crypt_autosign = yes
+set signature = $XDG_CONFIG_HOME/mutt/sig_gmail_br
bind index,pager gg noop
bind index,pager g noop
@@ -20,8 +21,7 @@ bind pager G bottom
macro index o "<shell-escape>killall mbsync >/dev/null 2>&1; mbsync -c $XDG_CONFIG_HOME/mbsync/mbsyncrc gmail_br<enter>" "run mbsync to sync bousset.rudy@gmail.com"
unmailboxes *
-mailboxes "=INBOX" "=[Gmail]/Sent Mail" "=[Gmail]/Drafts" "=[Gmail]/Spam" "=[Gmail]/Trash" "=Keep" \
- "=[Gmail]/All Mail" "=[Gmail]/Chats" "=[Gmail]/Important" "=[Gmail]/Starred"
+mailboxes "=INBOX" "=[Gmail]/Sent Mail" "=[Gmail]/Drafts" "=[Gmail]/Spam" "=[Gmail]/Trash" "=Keep"
macro index,pager gi "<change-folder>=INBOX<enter>" "go to inbox"
macro index,pager Mi ";<save-message>=INBOX<enter>" "move mail to inbox"
diff --git a/.config/mutt/accounts/3-gmail_oon.muttrc b/.config/mutt/accounts/3-gmail_oon.muttrc
index c857da5..9cc8765 100644
--- a/.config/mutt/accounts/3-gmail_oon.muttrc
+++ b/.config/mutt/accounts/3-gmail_oon.muttrc
@@ -9,6 +9,7 @@ set header_cache = $XDG_RUNTIME_DIR/mutt/gmail_oon/headers
set message_cachedir = $XDG_RUNTIME_DIR/mutt/gmail_oon/bodies
set mbox_type = Maildir
set crypt_autosign = yes
+set signature = $XDG_CONFIG_HOME/mutt/sig_gmail_oon
bind index,pager gg noop
bind index,pager g noop
diff --git a/.config/mutt/accounts/4-gmail_tos.muttrc b/.config/mutt/accounts/4-gmail_tos.muttrc
index bfbb4c0..10c8cde 100644
--- a/.config/mutt/accounts/4-gmail_tos.muttrc
+++ b/.config/mutt/accounts/4-gmail_tos.muttrc
@@ -9,6 +9,7 @@ set header_cache = $XDG_RUNTIME_DIR/mutt/gmail_tos/headers
set message_cachedir = $XDG_RUNTIME_DIR/mutt/gmail_tos/bodies
set mbox_type = Maildir
set crypt_autosign = yes
+set signature = $XDG_CONFIG_HOME/mutt/sig_gmail_tos
bind index,pager gg noop
bind index,pager g noop
@@ -20,7 +21,7 @@ bind pager G bottom
macro index o "<shell-escape>killall mbsync >/dev/null 2>&1; mbsync -c $XDG_CONFIG_HOME/mbsync/mbsyncrc gmail_tos<enter>" "run mbsync to sync towerofsilence777@gmail.com"
unmailboxes *
-mailboxes "=INBOX" "=Keep" "=[Gmail]/Drafts" "=[Gmail]/Sent Mail" "=[Gmail]/Spam" "=[Gmail]/Trash"
+mailboxes "=INBOX" "=[Gmail]/Drafts" "=[Gmail]/Sent Mail" "=[Gmail]/Spam" "=[Gmail]/Trash" "=Keep"
macro index,pager gi "<change-folder>=INBOX<enter>" "go to inbox"
macro index,pager Mi ";<save-message>=INBOX<enter>" "move mail to inbox"
diff --git a/.config/mutt/accounts/5-ss_perso.muttrc b/.config/mutt/accounts/5-ss_perso.muttrc
index fb71415..724126a 100644
--- a/.config/mutt/accounts/5-ss_perso.muttrc
+++ b/.config/mutt/accounts/5-ss_perso.muttrc
@@ -9,6 +9,7 @@ set header_cache = $XDG_RUNTIME_DIR/mutt/ss_perso/headers
set message_cachedir = $XDG_RUNTIME_DIR/mutt/ss_perso/bodies
set mbox_type = Maildir
set crypt_autosign = yes
+set signature = $XDG_CONFIG_HOME/mutt/sig_ss_perso
bind index,pager gg noop
bind index,pager g noop
diff --git a/.config/mutt/accounts/6-ss_exploit.muttrc b/.config/mutt/accounts/6-ss_exploit.muttrc
index 9232643..54248b3 100644
--- a/.config/mutt/accounts/6-ss_exploit.muttrc
+++ b/.config/mutt/accounts/6-ss_exploit.muttrc
@@ -9,6 +9,7 @@ set header_cache = $XDG_RUNTIME_DIR/mutt/ss_exploit/headers
set message_cachedir = $XDG_RUNTIME_DIR/mutt/ss_exploit/bodies
set mbox_type = Maildir
set crypt_autosign = no
+set signature = $XDG_CONFIG_HOME/mutt/sig_ss_exploit
bind index,pager gg noop
bind index,pager g noop
diff --git a/.config/mutt/accounts/7-ss_support.muttrc b/.config/mutt/accounts/7-ss_support.muttrc
index ac92fab..b51f3d7 100644
--- a/.config/mutt/accounts/7-ss_support.muttrc
+++ b/.config/mutt/accounts/7-ss_support.muttrc
@@ -9,6 +9,7 @@ set header_cache = $XDG_RUNTIME_DIR/mutt/ss_support/headers
set message_cachedir = $XDG_RUNTIME_DIR/mutt/ss_support/bodies
set mbox_type = Maildir
set crypt_autosign = no
+set signature = $XDG_CONFIG_HOME/mutt/sig_ss_support
bind index,pager gg noop
bind index,pager g noop
diff --git a/.config/mutt/accounts/sig_gmail_br b/.config/mutt/accounts/sig_gmail_br
new file mode 100644
index 0000000..9a4a7b5
--- /dev/null
+++ b/.config/mutt/accounts/sig_gmail_br
@@ -0,0 +1 @@
+Rudy Bousset
diff --git a/.config/mutt/accounts/sig_gmail_oon b/.config/mutt/accounts/sig_gmail_oon
new file mode 100644
index 0000000..4a42b71
--- /dev/null
+++ b/.config/mutt/accounts/sig_gmail_oon
@@ -0,0 +1 @@
+Joe
diff --git a/.config/mutt/accounts/sig_gmail_tos b/.config/mutt/accounts/sig_gmail_tos
new file mode 100644
index 0000000..a204fde
--- /dev/null
+++ b/.config/mutt/accounts/sig_gmail_tos
@@ -0,0 +1,2 @@
+Joe <Tower Of Silence>
+777
diff --git a/.config/mutt/accounts/sig_main b/.config/mutt/accounts/sig_main
new file mode 100644
index 0000000..9a4a7b5
--- /dev/null
+++ b/.config/mutt/accounts/sig_main
@@ -0,0 +1 @@
+Rudy Bousset
diff --git a/.config/mutt/accounts/sig_ss_perso b/.config/mutt/accounts/sig_ss_perso
new file mode 100644
index 0000000..47a11c1
--- /dev/null
+++ b/.config/mutt/accounts/sig_ss_perso
@@ -0,0 +1,2 @@
+Rudy Bousset <SecuServe>
+07 86 27 02 09
diff --git a/.local/bin/fetch_mail.sh b/.local/bin/fetch_mail.sh
index c30e309..0375f41 100755
--- a/.local/bin/fetch_mail.sh
+++ b/.local/bin/fetch_mail.sh
@@ -12,9 +12,10 @@ if [ -f $mc_file ]; then
pre_count=$(cat $mc_file)
else
pre_count="$(ls "${MAIL:-/var/mail/jozan}"/main/INBOX/new | wc -l 2>/dev/null)"
- tmp1="$(ls "${MAIL:-/var/mail/jozan}"/gmail_br/INBOX/new | wc -l 2>/dev/null)"
- tmp2="$(ls "${MAIL:-/var/mail/jozan}"/gmail_oon/INBOX/new | wc -l 2>/dev/null)"
- pre_count="$((pre_count + tmp1 + tmp2))"
+ mb1="$(ls "${MAIL:-/var/mail/jozan}"/gmail_br/INBOX/new | wc -l 2>/dev/null)"
+ mb2="$(ls "${MAIL:-/var/mail/jozan}"/gmail_oon/INBOX/new | wc -l 2>/dev/null)"
+ mb3="$(ls "${MAIL:-/var/mail/jozan}"/gmail_tos/INBOX/new | wc -l 2>/dev/null)"
+ pre_count="$((pre_count + mb1 + mb2 + mb3))"
fi
killall mbsync >/dev/null 2>&1
# notify-send -u low -t 3000 'mbsync' ' fetching mail...' >/dev/null 2>&1
@@ -26,9 +27,10 @@ gsleep 0.2
kill -74 $(pidof dwmblocks) >/dev/null 2>&1
fg
post_count="$(ls "${MAIL:-/var/mail/jozan}"/main/INBOX/new | wc -l 2>/dev/null)"
-tmp1="$(ls "${MAIL:-/var/mail/jozan}"/gmail_br/INBOX/new | wc -l 2>/dev/null)"
-tmp2="$(ls "${MAIL:-/var/mail/jozan}"/gmail_oon/INBOX/new | wc -l 2>/dev/null)"
-post_count="$((post_count + tmp1 + tmp2))"
+mb1="$(ls "${MAIL:-/var/mail/jozan}"/gmail_br/INBOX/new | wc -l 2>/dev/null)"
+mb2="$(ls "${MAIL:-/var/mail/jozan}"/gmail_oon/INBOX/new | wc -l 2>/dev/null)"
+mb3="$(ls "${MAIL:-/var/mail/jozan}"/gmail_tos/INBOX/new | wc -l 2>/dev/null)"
+post_count="$((post_count + mb1 + mb2 + mb3))"
if [ $post_count -gt $pre_count ]; then
notify-send -u normal 'NeoMutt' ' '$post_count' new mail(s)'
fi
diff --git a/.local/bin/status/sb-mailbox b/.local/bin/status/sb-mailbox
index 892607c..0dfcbd6 100755
--- a/.local/bin/status/sb-mailbox
+++ b/.local/bin/status/sb-mailbox
@@ -24,7 +24,7 @@ if pidof mbsync >/dev/null 2>&1; then
fi
case "$sync" in
- 0) [ "$mb_a" -gt 0 ] || [ "$mb_b" -gt 0 ] && echo -n " " ;;
+ 0) ([ "$mb_a" -gt 0 ] || [ "$mb_b" -gt 0 ] || [ "$mb_c" -gt 0 ] || [ "$mb_d" -gt 0 ]) && echo -n " " ;;
1) echo -n " " ;;
*) ;;
esac
@@ -34,7 +34,7 @@ if [ "$mb_a" -gt 0 ]; then
fi
if [ "$mb_a" -gt 0 ] && [ "$mb_b" -gt 0 ]; then
- echo -n " "
+ echo -n " - "
fi
if [ "$mb_b" -gt 0 ]; then
@@ -42,9 +42,9 @@ if [ "$mb_b" -gt 0 ]; then
fi
if [ "$mb_b" -gt 0 ] && [ "$mb_c" -gt 0 ]; then
- echo -n " "
+ echo -n " - "
elif [ "$mb_a" -gt 0 ] && [ "$mb_c" -gt 0 ]; then
- echo -n " "
+ echo -n " - "
fi
if [ "$mb_c" -gt 0 ]; then
@@ -52,11 +52,11 @@ if [ "$mb_c" -gt 0 ]; then
fi
if [ "$mb_c" -gt 0 ] && [ "$mb_d" -gt 0 ]; then
- echo -n " "
+ echo -n " - "
elif [ "$mb_b" -gt 0 ] && [ "$mb_d" -gt 0 ]; then
- echo -n " "
+ echo -n " - "
elif [ "$mb_a" -gt 0 ] && [ "$mb_d" -gt 0 ]; then
- echo -n " "
+ echo -n " - "
fi
if [ "$mb_d" -gt 0 ]; then