Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add config option to apply background opacity to all cell backgrounds #5917

Open
mitchellh opened this issue Feb 22, 2025 · 0 comments
Open
Labels

Comments

@mitchellh
Copy link
Contributor

Discussed in #5911

Originally posted by thomasschafer February 21, 2025
Currently when background-opacity is enabled, only cells with no background have the opacity applied. Alacritty has an option transparent_background_colors, which applies the opacity to all cells. For instance, I have the following in my Tmux config which sets the background of the non-focused windows to be slightly lighter than the focused window:

setw -g window-style 'bg=#2d3049'
setw -g window-active-style 'bg=#24273A'

In Alacritty with transparent_background_colors enabled, this means that those backgrounds still have the opacity set in my config:

Screenshot 2025-02-21 at 11 26 54

In Ghostty, however, there doesn't appear to be such a config option, so the windows have no such opacity:

Screenshot 2025-02-21 at 11 25 14

It would be amazing if there was a similar config option in Ghostty.

Implementation Note

Add a new configuration key background-opacity-cells (boolean) that defaults to false. It behaves identically to the Alacritty config linked above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant