* Jon LaBadie <mut...@jgcomp.com> [2021-09-08 01:20:27 -0400]:

I've always preferred a black letters on white background scheme.
However, after cataract surgery I'm considering using a dark
background scheme.

Has anyone a technique for defining multiple color schemes and
toggling among them while using mutt?

I already keep my color scheme in a separate file and source
that file from ~/.muttrc.  To extend that, I created two
files for light and dark schemes and separate macros (,l and ,d)
to source them while running mutt.

I'd like to reduce that to a single macro that toggles between
the files or one that allows selecting from multiple scheme
files, perhaps in round robin fashion.

--
Jon H. LaBadie                 mut...@jgcomp.com
11226 South Shore Rd.          (703) 787-0688 (H)
Reston, VA  20190              (703) 935-6720 (C)

Hi Jon,

What about keeping mutt to default foreground and background colors, and
switching the terminal color scheme instead?  I have this set up, and it
allows me to change the color scheme across any terminal programs I use.
While white fg on black bg is my usual preference, black fg on white bg
is more readable to me when I'm outside and there is more ambient glare
on the display.

I use the following mutt colors definitions:

        color normal     default  default
        color indicator  default  color7
        color status     default  default
        color index  bold  default  default  ~N|~F|~T|~D
        mono  index  bold  ~N|~F|~T|~D

My terminal is a patched version of st (https://st.suckless.org), where
I added Ctrl-Shift-x to flip between two color schemes:

        https://src.adamsgaard.dk/st/files.html
        git://src.adamsgaard.dk/st

Color schemes (colorname and altcolorname arrays) and other options are
set in config.h at compile time.

Just my two cents!

Cheers, Anders

Reply via email to