Find a way to change the modes programmatically.Implement the light and dark modes for each application separately.Pick up a popular color scheme with both dark and light modes and pleasant to the eyes.I had a rough plan on how I wanted to tackle this issue: Just like Vim or Alacritty, you can define the status bar colors in the config file, which is nf Tmux doesn’t use many colors usually unless you add a status bar or change the pane borders.Alacritty doesn’t have an API, though, but there are ways to emit an event. In Alacritty, you can define multiple color schemes and switch between them easily in the config file alacritty.yaml.In Vim, if your color scheme supports both a light and dark mode, you switch between by using the command: set background=dark or set background=light.There are already light color schemes for Vim, Alacritty, and most of the popular applications. So, I asked myself, “what if I use a light theme during the day and switch back to a darker theme later in the evening?”.
Last week, when I had to increase my screen’s brightness, I’ve figured out that I was using a pitch-black terminal screen and all my applications (Vim, Alacritty, etc.) had dark backgrounds. Since then, I never asked myself, “why does the terminal have a dark background?”. I’ve started using a terminal when I was 17 years old. If you’re like me, using shell applications, such as Tmux, Vim, etc., it won’t work for you. Apple later released an “Auto” mode, which would switch to dark and light based on your location’s time. Initially, I was manually changing my light and dark modes in macOS. Because I’m working remotely for a company with a large timezone difference, most of the time, this also means I’m working during the evenings. It makes reading text comfortable for me. Automatic dark mode for terminal applications February 15, 2021