# sidebar
source ~/.mutt/sidebar.muttrc
+# notmuch
+source ~/.mutt/notmuch.muttrc
+
# Crypto
source ~/.mutt/gpg.muttrc
--- /dev/null
+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"
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
}
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"
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