fix mutt for archlinux, add tlmgr update
authorMart Lubbers <mart@martlubbers.net>
Sun, 11 Jun 2017 09:09:38 +0000 (11:09 +0200)
committerMart Lubbers <mart@martlubbers.net>
Sun, 11 Jun 2017 09:09:38 +0000 (11:09 +0200)
email/.mutt/muttrc
email/.mutt/notmuch.muttrc [new file with mode: 0644]
email/.mutt/sidebar.muttrc
shell/.local/bin/update
x/.config/i3/config

index d341140..701f965 100644 (file)
@@ -80,6 +80,9 @@ macro index,pager A \
 # sidebar
 source ~/.mutt/sidebar.muttrc
 
+# notmuch
+source ~/.mutt/notmuch.muttrc
+
 # Crypto
 source ~/.mutt/gpg.muttrc
 
diff --git a/email/.mutt/notmuch.muttrc b/email/.mutt/notmuch.muttrc
new file mode 100644 (file)
index 0000000..673ec6f
--- /dev/null
@@ -0,0 +1,19 @@
+macro index <F8> "\
+       <enter-command>set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\
+       <shell-escape>notmuch-mutt -r --prompt search<enter>\
+       <change-folder-readonly>`echo ${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`<enter>\
+       <enter-command>set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key<enter>" \
+       "notmuch: search mail"
+
+macro index <F9> "\
+       <enter-command>set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\
+       <pipe-message>notmuch-mutt -r thread<enter>\
+       <change-folder-readonly>`echo ${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`<enter>\
+       <enter-command>set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key<enter>" \
+       "notmuch: reconstruct thread"
+
+macro index <F6> "\
+       <enter-command>set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\
+       <pipe-message>notmuch-mutt tag -- -inbox<enter>\
+       <enter-command>set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key<enter>" \
+       "notmuch: remove message from inbox"
index a998759..c22b565 100644 (file)
@@ -7,9 +7,9 @@ set sidebar_format = '%B%?F? [%F]?%* %?N?%N/?%S'
 set sidebar_sort_method = 'path'
 
 # Keybindings
-bind index,pager \Cj sidebar-prev
-bind index,pager \Ck sidebar-next
-bind index,pager \Cl sidebar-open
+bind index,pager K sidebar-prev
+bind index,pager J sidebar-next
+bind index,pager L sidebar-open
 bind index,pager B sidebar-toggle-visible
 
 # Colors
index 086ef27..3113604 100755 (executable)
@@ -14,4 +14,4 @@ cmd() {
 }
 
 sudo sh -c "`cmd`"
-sh -c "offlineimap -u ttyui && vdirsyncer sync && khal $NUL && khard $NUL"
+sh -c "tlmgr update --all --self && offlineimap -u ttyui && vdirsyncer sync && khal $NUL && khard $NUL"
index abbfdde..54a68cf 100644 (file)
@@ -14,7 +14,7 @@ set $font DejaVu Sans Mono
 set $fontsize 12
 
 # lock the screen after 10 minutes
-exec xautolock -locker ~/.local/bin/lock.sh & dunst & setxkbmap -layout dvorak,ru,us -variant ,phonetic_dvorak, -option compose:ralt,grp:menu_toggle,caps:super
+exec setxkbmap -layout dvorak,ru,us -variant ,phonetic_dvorak, -option compose:ralt,grp:menu_toggle,caps:super
 
 # Toggle playback
 bindsym Pause exec mpc toggle