aboutsummaryrefslogtreecommitdiffstats
path: root/_config/alot
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@gmail.com>2016-01-14 22:51:09 +0800
committerAaron LI <aaronly.me@gmail.com>2016-01-14 22:51:09 +0800
commitb6a89d6feb06c066d09a83d562879c8a80242be4 (patch)
tree0be4e821ffa249efa80f7f6714ed4236bd9c3933 /_config/alot
parent7b589d33e382cbb23929e2eef4fb90d5cc381dea (diff)
downloaddotfiles-b6a89d6feb06c066d09a83d562879c8a80242be4.tar.bz2
Add alot (notmuch frontend) config and theme.
* `README.md`: add section about explicit home or other path
Diffstat (limited to '_config/alot')
-rw-r--r--_config/alot/config137
-rw-r--r--_config/alot/themes/solarized_dark143
2 files changed, 280 insertions, 0 deletions
diff --git a/_config/alot/config b/_config/alot/config
new file mode 100644
index 0000000..8196d36
--- /dev/null
+++ b/_config/alot/config
@@ -0,0 +1,137 @@
+##
+## ~/.config/alot/config
+## Configuration for alot MUA
+##
+## Aaron LI
+## Created: 2016-01-11
+## Updated: 2016-01-11
+##
+
+
+### Global configurations {{{
+# ask for subject when compose
+#ask_subject = False
+
+# confirm exit
+bug_on_exit = True
+
+# headers that get displayed by default
+displayed_headers = From, To, Cc, Bcc, Subject
+
+# editor command
+# if unset, alot will first try the `EDITOR`, then `/usr/bin/editor`
+editor_cmd = 'gvim -f -c "set tw=72 spell"'
+# call editor in separate thread.
+# In case your editor doesn't run in the same window as alot, setting true here
+# will make alot non-blocking during edits
+editor_in_thread = True
+
+# prefer plaintext alternatives over html content in multipart/alternative
+prefer_plaintext = True
+
+# number of spaces used to replace tab characters
+tabwidth = 4
+
+# set terminal command used for spawning shell commands
+terminal_cmd = urxvt -e
+
+# name of the theme to use
+theme = solarized_dark
+
+### Global }}}
+
+
+# The list of addresses associated to the mailinglists you are subscribed to
+mailinglists = freebsd-current@freebsd.org, freebsd-x11@freebsd.org, misc@openbsd.org, tech@openbsd.org
+
+
+# NOTE: blocks should be placed *AFTER* the global configurations
+
+[accounts]
+
+ [[gmail-aly]]
+ realname = Aaron LI
+ address = aaronly.me@gmail.com
+ gpg_key = 5D72729A
+ sendmail_command = msmtp --read-recipients --account=gmail-aly
+ sent_box = maildir:///home/aly/Mail/sent
+ draft_box = maildir:///home/aly/Mail/gmail-aly/[Gmail].Drafts
+ signature = ~/.signature-aly
+
+ [[outlook-aly]]
+ realname = Aaron LI
+ address = aaronly.me@outlook.com
+ gpg_key = 5D72729A
+ sendmail_command = msmtp --read-recipients --account=outlook-aly
+ sent_box = maildir:///home/aly/Mail/sent
+ draft_box = maildir:///home/aly/Mail/outlook-aly/Drafts
+ signature = ~/.signature-aly
+
+ [[outlook-li]]
+ realname = Weitian LI
+ address = liweitianux@live.com
+ aliases = liweitianux@live.cn, liweitianux@outlook.com
+ gpg_key = 5F26EBF6
+ sendmail_command = msmtp --read-recipients --account=outlook-li
+ sent_box = maildir:///home/aly/Mail/sent
+ draft_box = maildir:///home/aly/Mail/outlook-li/Drafts
+ signature = ~/.signature-li
+
+
+[tags]
+ [[flagged]]
+ translated = ⚑
+ normal = '', '', 'light red', '', 'light red', ''
+ focus = '', '', 'light red', '', 'light red', ''
+
+ [[todo]]
+ translated = TODO
+ normal = '', '', 'white', 'light red', 'white', '#d66'
+
+ [[unread]]
+ translated = ✉
+
+ [[drafts]]
+ translated = ✎
+
+ [[replied]]
+ translated = ⏎
+
+ [[sent]]
+ translated = ➥
+
+ [[signed]]
+ translated = ✍
+
+ [[encrypted]]
+ translated = ⚷
+
+ [[killed]]
+ translated = ✗
+
+ [[attachment]]
+ translated = ✂
+
+
+### Key bindings
+[bindings]
+c = compose
+F = search tag:flagged
+I = search tag:inbox AND tag:unread AND NOT tag:killed
+i = search tag:inbox AND NOT tag:killed
+S = search tag:sent
+T = search tag:todo
+
+ [[envelope]]
+ E = toggleencrypt
+
+ [[search]]
+ D = toggletags delete
+ t = toggletags todo
+
+ [[thread]]
+ a = toggletags inbox
+ t = toggletags todo
+
+
+# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=python: #
diff --git a/_config/alot/themes/solarized_dark b/_config/alot/themes/solarized_dark
new file mode 100644
index 0000000..fec11c5
--- /dev/null
+++ b/_config/alot/themes/solarized_dark
@@ -0,0 +1,143 @@
+##
+## Solarized Dark
+##
+## Colour theme for alot. © 2012 Patrick Totzke, GNU GPL3+
+## http://ethanschoonover.com/solarized
+## https://github.com/pazz/alot
+##
+## Define mappings from solarized colour names to urwid attribute names for 16
+## and 256 colour modes. These work well assuming you use the solarized term
+## colours via Xressources/Xdefaults. You might want to change this otherwise
+##
+## Update the threadline formatting, etc.
+## Aaron LI
+## Updated: 2016-01-12
+##
+
+16_base03 = 'dark gray'
+16_base02 = 'black'
+16_base01 = 'light green'
+16_base00 = 'yellow'
+16_base0 = 'light blue'
+16_base1 = 'light cyan'
+16_base2 = 'light gray'
+16_base3 = 'white'
+16_yellow = 'brown'
+16_orange = 'light red'
+16_red = 'dark red'
+16_magenta = 'dark magenta'
+16_violet = 'light magenta'
+16_blue = 'dark blue'
+16_cyan = 'dark cyan'
+16_green = 'dark green'
+
+# Use a slightly different mapping here to be able to use "bold" in 256c mode
+256_base03 = 'dark gray'
+256_base02 = 'black'
+256_base01 = 'light green'
+256_base00 = 'yellow'
+256_base0 = 'g50' #808080
+256_base1 = 'g52' #848484 - approximates #8a8a8a
+256_base2 = 'light gray'
+256_base3 = 'white'
+256_yellow = 'brown'
+256_orange = 'light red'
+256_red = 'dark red'
+256_magenta = 'dark magenta'
+256_violet = 'light magenta'
+256_blue = 'dark blue'
+256_cyan = '#0aa' #00afaf
+256_green = 'dark green'
+
+
+# This is the actual alot theme
+[global]
+ footer = 'standout','default','%(16_base1)s','%(16_base02)s','%(256_base1)s','%(256_base02)s'
+ body = 'default','default','%(16_base0)s','%(16_base03)s','%(256_base0)s','%(256_base03)s'
+ notify_error = 'standout','default','%(16_base3)s','%(16_red)s','%(256_base3)s','%(256_red)s'
+ notify_normal = 'default','default','%(16_base01)s','%(16_base02)s','%(256_base01)s','%(256_base02)s'
+ prompt = 'default','default','%(16_base0)s','%(16_base02)s','%(256_base0)s','%(256_base02)s'
+ tag = 'default','default','%(16_yellow)s','%(16_base03)s','%(256_yellow)s','%(256_base03)s'
+ tag_focus = 'standout','default','%(16_base03)s','%(16_yellow)s','%(256_base03)s','%(256_yellow)s'
+
+[help]
+ text = 'default','default','%(16_base1)s','%(16_base02)s','%(256_base1)s','%(256_base02)s'
+ section = 'underline','default','%(16_base1)s,underline','%(16_base02)s','%(256_base1)s,underline','%(256_base02)s'
+ title = 'standout','default','%(16_base1)s','%(16_base02)s','%(256_base1)s,bold','%(256_base02)s'
+
+[taglist]
+ line_focus = 'standout','default','%(16_base02)s','%(16_yellow)s','%(256_base02)s','%(256_yellow)s'
+ line_even = 'default','default','%(16_base0)s','%(16_base03)s','%(256_base0)s','%(256_base03)s'
+ line_odd = 'default','default','%(16_base0)s','%(16_base02)s','%(256_base0)s','%(256_base02)s'
+[bufferlist]
+ line_focus = 'standout','default','%(16_base02)s','%(16_yellow)s','%(256_base02)s','%(256_yellow)s'
+ line_even = 'default','default','%(16_base0)s','%(16_base03)s','%(256_base0)s','%(256_base03)s'
+ line_odd = 'default','default','%(16_base0)s','%(16_base02)s','%(256_base0)s','%(256_base02)s'
+
+[thread]
+ attachment = 'default','default','%(16_base0)s','%(16_base03)s','%(256_base0)s','%(256_base03)s'
+ attachment_focus = 'underline','default','%(16_base02)s','%(16_yellow)s','%(256_base02)s','%(256_yellow)s'
+ arrow_bars = 'default','default','%(16_yellow)s','%(16_base03)s','%(256_yellow)s','%(256_base03)s'
+ arrow_heads = 'default','default','%(16_yellow)s','%(16_base03)s','%(256_yellow)s','%(256_base03)s'
+ body = 'default','default','%(16_base0)s','%(16_base03)s','%(256_base0)s','%(256_base03)s'
+ body_focus = 'default','default','%(16_base0)s','%(16_base03)s','%(256_base0)s','%(256_base02)s'
+ header = 'default','default','%(16_base0)s','%(16_base02)s','%(256_base0)s','%(256_base02)s'
+ header_key = 'default','default','%(16_magenta)s','%(16_base02)s','%(256_magenta)s','%(256_base02)s'
+ header_value = 'default','default','%(16_blue)s','%(16_base02)s','%(256_blue)s','%(256_base02)s'
+ [[summary]]
+ even = 'default','default','%(16_base0)s','%(16_base02)s','%(256_base0)s','%(256_base02)s'
+ focus = 'standout','default','%(16_base03)s','%(16_yellow)s','%(256_base03)s','%(256_yellow)s'
+ odd = 'default','default','%(16_base0)s','%(16_base03)s','%(256_base0)s','%(256_base03)s'
+
+[envelope]
+ body = 'default','default','%(16_base0)s','%(16_base03)s','%(256_base0)s','%(256_base03)s'
+ header = 'default','default','%(16_base0)s','%(16_base02)s','%(256_base0)s','%(256_base02)s'
+ header_key = 'default','default','%(16_orange)s','%(16_base02)s','%(256_orange)s','%(256_base02)s'
+ header_value = 'default','default','%(16_violet)s','%(16_base02)s','%(256_violet)s','%(256_base02)s'
+
+[search]
+ [[threadline]]
+ normal = 'default','default','%(16_base1)s','%(16_base03)s','%(256_base1)s','%(256_base03)s'
+ focus = 'standout','default','%(16_base02)s','%(16_yellow)s','%(256_base02)s','%(256_yellow)s'
+ parts = date,mailcount,tags,authors,subject
+ [[[date]]]
+ normal = 'default','default','%(16_base1)s','%(16_base03)s','%(256_base1)s','%(256_base03)s'
+ focus = 'standout','default','%(16_base02)s,bold','%(16_yellow)s','%(256_base02)s,bold','%(256_yellow)s'
+ width = 'fit', 9, 9
+ alignment = right
+ [[[mailcount]]]
+ normal = 'default','default','%(16_base1)s','%(16_base03)s','%(256_base1)s','%(256_base03)s'
+ focus = 'standout','default','%(16_base02)s','%(16_yellow)s','%(256_base02)s','%(256_yellow)s'
+ width = 'fit', 4, 5
+ alignment = right
+ [[[tags]]]
+ normal = 'bold','default','%(16_yellow)s','%(16_base03)s','%(256_yellow)s','%(256_base03)s'
+ focus = 'standout','default','%(16_base02)s,bold','%(16_yellow)s','%(256_base02)s,bold','%(256_yellow)s'
+ [[[authors]]]
+ normal = 'default,underline','default','%(16_cyan)s','%(16_base03)s','%(256_cyan)s','%(256_base03)s'
+ focus = 'standout','default','%(16_base02)s','%(16_yellow)s','%(256_base02)s','%(256_yellow)s'
+ width = 'fit', 5, 15
+ alignment = left
+ [[[subject]]]
+ normal = 'default','default','%(16_base0)s','%(16_base03)s','%(256_base0)s','%(256_base03)s'
+ focus = 'standout','default','%(16_base02)s,bold','%(16_yellow)s','%(256_base02)s,bold','%(256_yellow)s'
+ width = 'weight', 1
+ [[[content]]]
+ normal = 'default','default','%(16_base01)s','%(16_base03)s','%(256_base01)s','%(256_base03)s'
+ focus = 'standout','default','%(16_base02)s','%(16_yellow)s','%(256_base02)s','%(256_yellow)s'
+ width = 'weight', 1
+ [[threadline-unread]]
+ normal = 'default','default','%(16_base1)s,bold','%(16_base03)s','%(256_base1)s,bold','%(256_base03)s'
+ tagged_with = 'unread'
+ [[[date]]]
+ normal = 'default','default','%(16_base2)s','%(16_base03)s','%(256_base2)s','%(256_base03)s'
+ [[[mailcount]]]
+ normal = 'default','default','%(16_base2)s','%(16_base03)s','%(256_base2)s','%(256_base03)s'
+ [[[tags]]]
+ normal = 'bold','default','%(16_yellow)s','%(16_base03)s','%(256_yellow)s','%(256_base03)s'
+ [[[authors]]]
+ normal = 'default,underline','default','%(16_cyan)s','%(16_base03)s','%(256_cyan)s,bold','%(256_base03)s'
+ [[[subject]]]
+ normal = 'default','default','%(16_base2)s','%(16_base03)s','%(256_base2)s','%(256_base02)s'
+ [[[content]]]
+ normal = 'default','default','%(16_base01)s,bold','%(16_base03)s','%(256_base01)s,bold','%(256_base03)s'