From 85af75f81a72b8c605cfffb46608ff1a84d81f68 Mon Sep 17 00:00:00 2001 From: Sn4il Date: Wed, 22 Nov 2023 16:59:51 +0300 Subject: Dracula theme for mutt and newsboat --- .mailcap | 1 + mutt/muttrc | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ newsboat/config | 26 +++++++++++++++++++++ 3 files changed, 97 insertions(+) create mode 100644 .mailcap create mode 100644 mutt/muttrc create mode 100644 newsboat/config diff --git a/.mailcap b/.mailcap new file mode 100644 index 0000000..8603537 --- /dev/null +++ b/.mailcap @@ -0,0 +1 @@ +text/html; w3m -I %{charset} -T text/html; copiousoutput; diff --git a/mutt/muttrc b/mutt/muttrc new file mode 100644 index 0000000..8b2af62 --- /dev/null +++ b/mutt/muttrc @@ -0,0 +1,70 @@ +# vim: filetype=neomuttrc +#source /usr/local/share/mutt-wizard/mutt-wizard.muttrc +source /home/sn4il/.config/mutt/accounts/account1.muttrc +set sidebar_visible = yes + +set sidebar_width = 15 + +set sidebar_folder_indent = yes + +set sidebar_short_path = yes +bind index,pager \CB sidebar-toggle-visible +bind index,pager \CP sidebar-prev +bind index,pager \CN sidebar-next +bind index,pager \CO sidebar-open +macro index,pager i1 'source /home/sn4il/.config/mutt/accounts/account1.muttrc!;' "switch to account1" +macro index,pager i2 'source /home/sn4il/.config/mutt/accounts/account2.muttrc!;' "switch to account2" +macro index,pager \cV ": unset wait_key; set pipe_decode\n|w3m\n: set wait_key; unset pipe_decode\n" "call w3m to extract URLs out of a message" + + +set mailcap_path = ~/.mailcap +auto_view text/html + +macro index A \ + "~NN." \ + "mark all new as read" + +############################################################################### +# Dracula Theme for Mutt: https://draculatheme.com/ +# +# @author Paul Townsend + +# general ------------ foreground ---- background ----------------------------- +color error color231 color212 +color indicator color231 color241 +color markers color210 default +color message default default +color normal default default +color prompt default default +color search color84 default +color status color141 color236 +color tilde color231 default +color tree color141 default + +# message index ------ foreground ---- background ----------------------------- +color index color210 default ~D # deleted messages +color index color84 default ~F # flagged messages +color index color117 default ~N # new messages +color index color212 default ~Q # messages which have been replied to +color index color215 default ~T # tagged messages +color index color141 default ~v # messages part of a collapsed thread + +# message headers ---- foreground ---- background ----------------------------- +color hdrdefault color117 default +color header color231 default ^Subject:.* + +# message body ------- foreground ---- background ----------------------------- +color attachment color228 default +color body color231 default [\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+ # email addresses +color body color228 default (https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+ # URLs +color body color231 default (^|[[:space:]])\\*[^[:space:]]+\\*([[:space:]]|$) # *bold* text +color body color231 default (^|[[:space:]])_[^[:space:]]+_([[:space:]]|$) # _underlined_ text +color body color231 default (^|[[:space:]])/[^[:space:]]+/([[:space:]]|$) # /italic/ text +color quoted color61 default +color quoted1 color117 default +color quoted2 color84 default +color quoted3 color215 default +color quoted4 color212 default +color signature color212 default + + diff --git a/newsboat/config b/newsboat/config new file mode 100644 index 0000000..ea77040 --- /dev/null +++ b/newsboat/config @@ -0,0 +1,26 @@ +# Dark theme based on Dracula color scheme for newsboat. +# +# In order to use this color scheme, you must first configure +# your terminal emulator to use the Dracula palette. +# See for more information. + +color background default default +color listnormal color255 default +color listfocus color238 color255 standout +color listnormal_unread color47 default +color listfocus_unread color238 color47 standout +color info color141 color236 + +# highlights +highlight all "---.*---" yellow +highlight feedlist ".*(0/0))" black +highlight article "(^Feed:|^Title:|^Date:|^Link:|^Author:)" cyan default bold +highlight article "https?://[^ ]+" yellow default +highlight article "\\[[0-9][0-9]*\\]" magenta default bold +highlight article "\\[image\\ [0-9]+\\]" green default bold +highlight article "\\[embedded flash: [0-9][0-9]*\\]" green default bold +highlight article ":.*\\(link\\)$" cyan default +highlight article ":.*\\(image\\)$" blue default +highlight article ":.*\\(embedded flash\\)$" magenta default + + -- cgit v1.2.3