summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.config/mutt/accounts/1-bousset.rudy@gmail.com.muttrc28
-rw-r--r--.config/mutt/accounts/2-olsen.oyvind.nor@gmail.com.muttrc6
-rw-r--r--.config/mutt/accounts/3-towerofsilence777@gmail.com.muttrc6
-rw-r--r--.config/mutt/accounts/5-rbousset@secuserve.com.muttrc6
-rw-r--r--.config/mutt/accounts/6-exploitation@secuserve.com.muttrc6
-rw-r--r--.config/mutt/accounts/7-support@secuserve.com.muttrc6
-rw-r--r--.config/mutt/defaults.muttrc5
-rwxr-xr-x.local/bin/fetch_mail.sh4
-rwxr-xr-x.local/bin/status/sb-net7
9 files changed, 42 insertions, 32 deletions
diff --git a/.config/mutt/accounts/1-bousset.rudy@gmail.com.muttrc b/.config/mutt/accounts/1-bousset.rudy@gmail.com.muttrc
index 506e9a7..d078779 100644
--- a/.config/mutt/accounts/1-bousset.rudy@gmail.com.muttrc
+++ b/.config/mutt/accounts/1-bousset.rudy@gmail.com.muttrc
@@ -11,30 +11,32 @@ set mbox_type = Maildir
bind index,pager gg noop
bind index,pager g noop
-bind index,pager M noop
-bind index,pager C noop
+bind index,pager m noop
+bind index,pager c noop
bind index gg first-entry
+bind pager gg top
+bind pager G bottom
macro index o "<shell-escape>killall mbsync >/dev/null 2>&1; mbsync -c $XDG_CONFIG_HOME/mbsync/mbsyncrc bousset.rudy@gmail.com<enter>" "run mbsync to sync bousset.rudy@gmail.com"
unmailboxes *
mailboxes "=INBOX" "=[Gmail]/Sent Mail" "=[Gmail]/Drafts" "=[Gmail]/Spam" "=[Gmail]/Trash"
macro index,pager gi "<change-folder>=INBOX<enter>" "go to inbox"
-macro index,pager Mi ";<save-message>=INBOX<enter>" "move mail to inbox"
-macro index,pager Ci ";<copy-message>=INBOX<enter>" "copy mail to inbox"
+macro index,pager mi ";<save-message>=INBOX<enter>" "move mail to inbox"
+macro index,pager ci ";<copy-message>=INBOX<enter>" "copy mail to inbox"
set spoolfile = "+INBOX"
macro index,pager gs "<change-folder>=[Gmail]/Sent Mail<enter>" "go to sent"
-macro index,pager Ms ";<save-message>=[Gmail]/Sent Mail<enter>" "move mail to sent"
-macro index,pager Cs ";<copy-message>=[Gmail]/Sent Mail<enter>" "copy mail to sent"
+macro index,pager ms ";<save-message>=[Gmail]/Sent Mail<enter>" "move mail to sent"
+macro index,pager cs ";<copy-message>=[Gmail]/Sent Mail<enter>" "copy mail to sent"
set record = "+[Gmail]/Sent Mail"
macro index,pager gd "<change-folder>=[Gmail]/Drafts<enter>" "go to drafts"
-macro index,pager Md ";<save-message>=[Gmail]/Drafts<enter>" "move mail to drafts"
-macro index,pager Cd ";<copy-message>=[Gmail]/Drafts<enter>" "copy mail to drafts"
+macro index,pager md ";<save-message>=[Gmail]/Drafts<enter>" "move mail to drafts"
+macro index,pager cd ";<copy-message>=[Gmail]/Drafts<enter>" "copy mail to drafts"
set postponed = "+[Gmail]/Drafts"
macro index,pager gS "<change-folder>=[Gmail]/Spam<enter>" "go to spam"
-macro index,pager MS ";<save-message>=[Gmail]/Spam<enter>" "move mail to spam"
-macro index,pager CS ";<copy-message>=[Gmail]/Spam<enter>" "copy mail to spam"
-macro index,pager gT "<change-folder>=[Gmail]/Trash<enter>" "go to trash"
-macro index,pager MT ";<save-message>=[Gmail]/Trash<enter>" "move mail to trash"
-macro index,pager CT ";<copy-message>=[Gmail]/Trash<enter>" "copy mail to trash"
+macro index,pager mS ";<save-message>=[Gmail]/Spam<enter>" "move mail to spam"
+macro index,pager cS ";<copy-message>=[Gmail]/Spam<enter>" "copy mail to spam"
+macro index,pager gt "<change-folder>=[Gmail]/Trash<enter>" "go to trash"
+macro index,pager Mt ";<save-message>=[Gmail]/Trash<enter>" "move mail to trash"
+macro index,pager Ct ";<copy-message>=[Gmail]/Trash<enter>" "copy mail to trash"
set trash = "+[Gmail]/Trash"
diff --git a/.config/mutt/accounts/2-olsen.oyvind.nor@gmail.com.muttrc b/.config/mutt/accounts/2-olsen.oyvind.nor@gmail.com.muttrc
index 101b43d..e3f7a32 100644
--- a/.config/mutt/accounts/2-olsen.oyvind.nor@gmail.com.muttrc
+++ b/.config/mutt/accounts/2-olsen.oyvind.nor@gmail.com.muttrc
@@ -34,7 +34,7 @@ set postponed = "+[Gmail]/Drafts"
macro index,pager gS "<change-folder>=[Gmail]/Spam<enter>" "go to spam"
macro index,pager MS ";<save-message>=[Gmail]/Spam<enter>" "move mail to spam"
macro index,pager CS ";<copy-message>=[Gmail]/Spam<enter>" "copy mail to spam"
-macro index,pager gT "<change-folder>=[Gmail]/Trash<enter>" "go to trash"
-macro index,pager MT ";<save-message>=[Gmail]/Trash<enter>" "move mail to trash"
-macro index,pager CT ";<copy-message>=[Gmail]/Trash<enter>" "copy mail to trash"
+macro index,pager gt "<change-folder>=[Gmail]/Trash<enter>" "go to trash"
+macro index,pager Mt ";<save-message>=[Gmail]/Trash<enter>" "move mail to trash"
+macro index,pager Ct ";<copy-message>=[Gmail]/Trash<enter>" "copy mail to trash"
set trash = "+[Gmail]/Trash"
diff --git a/.config/mutt/accounts/3-towerofsilence777@gmail.com.muttrc b/.config/mutt/accounts/3-towerofsilence777@gmail.com.muttrc
index 0ad0340..d39d043 100644
--- a/.config/mutt/accounts/3-towerofsilence777@gmail.com.muttrc
+++ b/.config/mutt/accounts/3-towerofsilence777@gmail.com.muttrc
@@ -33,7 +33,7 @@ macro index,pager Cs ";<copy-message>=[Gmail].Messages envoy&AOk-s<enter>" "copy
macro index,pager gS "<change-folder>=[Gmail].Spam<enter>" "go to spam"
macro index,pager MS ";<save-message>=[Gmail].Spam<enter>" "move mail to spam"
macro index,pager CS ";<copy-message>=[Gmail].Spam<enter>" "copy mail to spam"
-macro index,pager gT "<change-folder>=[Gmail].Corbeille<enter>" "go to trash"
-macro index,pager MT ";<save-message>=[Gmail].Corbeille<enter>" "move mail to trash"
-macro index,pager CT ";<copy-message>=[Gmail].Corbeille<enter>" "copy mail to trash"
+macro index,pager gt "<change-folder>=[Gmail].Corbeille<enter>" "go to trash"
+macro index,pager Mt ";<save-message>=[Gmail].Corbeille<enter>" "move mail to trash"
+macro index,pager Ct ";<copy-message>=[Gmail].Corbeille<enter>" "copy mail to trash"
set trash = "+[Gmail].Corbeille"
diff --git a/.config/mutt/accounts/5-rbousset@secuserve.com.muttrc b/.config/mutt/accounts/5-rbousset@secuserve.com.muttrc
index 2b40144..21f40ba 100644
--- a/.config/mutt/accounts/5-rbousset@secuserve.com.muttrc
+++ b/.config/mutt/accounts/5-rbousset@secuserve.com.muttrc
@@ -34,9 +34,9 @@ set postponed = "+Drafts"
macro index,pager gS "<change-folder>=Junk<enter>" "go to junk"
macro index,pager MS ";<save-message>=Junk<enter>" "move mail to junk"
macro index,pager CS ";<copy-message>=Junk<enter>" "copy mail to junk"
-macro index,pager gT "<change-folder>=Trash<enter>" "go to trash"
-macro index,pager MT ";<save-message>=Trash<enter>" "move mail to trash"
-macro index,pager CT ";<copy-message>=Trash<enter>" "copy mail to trash"
+macro index,pager gt "<change-folder>=Trash<enter>" "go to trash"
+macro index,pager Mt ";<save-message>=Trash<enter>" "move mail to trash"
+macro index,pager Ct ";<copy-message>=Trash<enter>" "copy mail to trash"
set trash = "+Trash"
macro index,pager gn "<change-folder>=NEWS<enter>" "go to news"
macro index,pager Mn ";<save-message>=NEWS<enter>" "move mail to news"
diff --git a/.config/mutt/accounts/6-exploitation@secuserve.com.muttrc b/.config/mutt/accounts/6-exploitation@secuserve.com.muttrc
index 89533c7..6467522 100644
--- a/.config/mutt/accounts/6-exploitation@secuserve.com.muttrc
+++ b/.config/mutt/accounts/6-exploitation@secuserve.com.muttrc
@@ -57,9 +57,9 @@ set postponed = "+Drafts"
macro index,pager gS "<change-folder>=SPAM<enter>" "go to spam"
macro index,pager MS ";<save-message>=SPAM<enter>" "move mail to spam"
macro index,pager CS ";<copy-message>=SPAM<enter>" "copy mail to spam"
-macro index,pager gT "<change-folder>=Trash<enter>" "go to trash"
-macro index,pager MT ";<save-message>=Trash<enter>" "move mail to trash"
-macro index,pager CT ";<copy-message>=Trash<enter>" "copy mail to trash"
+macro index,pager gt "<change-folder>=Trash<enter>" "go to trash"
+macro index,pager mt ";<save-message>=Trash<enter>" "move mail to trash"
+macro index,pager ct ";<copy-message>=Trash<enter>" "copy mail to trash"
set trash = "+Trash"
macro index,pager gc "<change-folder>=Calendrier<enter>" "go to calendar"
macro index,pager Mc ";<save-message>=Calendrier<enter>" "move mail to calendar"
diff --git a/.config/mutt/accounts/7-support@secuserve.com.muttrc b/.config/mutt/accounts/7-support@secuserve.com.muttrc
index 5f7f3ba..480f0e5 100644
--- a/.config/mutt/accounts/7-support@secuserve.com.muttrc
+++ b/.config/mutt/accounts/7-support@secuserve.com.muttrc
@@ -70,9 +70,9 @@ set postponed = "+Drafts"
macro index,pager gS "<change-folder>=SPAM<enter>" "go to spam"
macro index,pager MS ";<save-message>=SPAM<enter>" "move mail to spam"
macro index,pager CS ";<copy-message>=SPAM<enter>" "copy mail to spam"
-macro index,pager gT "<change-folder>=Trash<enter>" "go to trash"
-macro index,pager MT ";<save-message>=Trash<enter>" "move mail to trash"
-macro index,pager CT ";<copy-message>=Trash<enter>" "copy mail to trash"
+macro index,pager gt "<change-folder>=Trash<enter>" "go to trash"
+macro index,pager mt ";<save-message>=Trash<enter>" "move mail to trash"
+macro index,pager ct ";<copy-message>=Trash<enter>" "copy mail to trash"
set trash = "+Trash"
macro index,pager gn "<change-folder>=NEWS<enter>" "go to news"
macro index,pager Mn ";<save-message>=NEWS<enter>" "move mail to news"
diff --git a/.config/mutt/defaults.muttrc b/.config/mutt/defaults.muttrc
index 48d8afa..353b7c5 100644
--- a/.config/mutt/defaults.muttrc
+++ b/.config/mutt/defaults.muttrc
@@ -57,11 +57,16 @@ bind index,pager \Cj sidebar-next
bind index,pager \Co sidebar-open
bind index,pager \Cp sidebar-prev-new
bind index,pager \Cn sidebar-next-new
+bind index,pager \Cb sidebar-toggle-visible
bind index,pager B sidebar-toggle-visible
# General rebindings
bind index,pager i noop
bind index,pager g noop
+bind pager gg noop
+bind pager G noop
+bind pager gg top
+bind pager G bottom
bind index \Cf noop
bind index j next-entry
bind index k previous-entry
diff --git a/.local/bin/fetch_mail.sh b/.local/bin/fetch_mail.sh
index 2c96082..1f2889b 100755
--- a/.local/bin/fetch_mail.sh
+++ b/.local/bin/fetch_mail.sh
@@ -1,5 +1,7 @@
#!/bin/sh
+set -f
+set +f
set -m
export GNUPGHOME=/home/jozan/.local/share/gnupg
@@ -14,7 +16,7 @@ else
pre_count="$((pre_count + tmp))"
fi
killall mbsync >/dev/null 2>&1
-notify-send -u low -t 3000 'mbsync' ' fetching mail...' >/dev/null 2>&1
+# notify-send -u low -t 3000 'mbsync' ' fetching mail...' >/dev/null 2>&1
{
mbsync -a -c /usr/home/jozan/.config/mbsync/mbsyncrc ||
notify-send -u low -t 6000 'mbsync' ' failed to fetch mail' >/dev/null 2>&1
diff --git a/.local/bin/status/sb-net b/.local/bin/status/sb-net
index 97283af..2cc07da 100755
--- a/.local/bin/status/sb-net
+++ b/.local/bin/status/sb-net
@@ -1,8 +1,9 @@
#!/bin/sh
-if ifconfig | grep -F ' active' >/dev/null; then
- echo " "
+# if ifconfig | grep -F ' active' >/dev/null; then
+if ! ping -q -c1 -t1 8.8.8.8 >/dev/null 2>&1; then
+ echo " "
return
fi
-echo " "
+echo " "