From a88e11f54b567f1d30a4e699c3b53966375bc4bf Mon Sep 17 00:00:00 2001 From: Roman Perepelitsa Date: Sun, 28 Jun 2020 11:11:27 +0200 Subject: [PATCH] disable background transparency in iTerm2 --- internal/wizard.zsh | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/internal/wizard.zsh b/internal/wizard.zsh index eb27e2c1..b078a9e2 100644 --- a/internal/wizard.zsh +++ b/internal/wizard.zsh @@ -519,19 +519,20 @@ function install_font() { local size=$iterm2_font_size [[ $size == 12 ]] && size=13 local k t v settings=( - '"Normal Font"' string '"MesloLGS-NF-Regular '$size'"' - '"Terminal Type"' string '"xterm-256color"' - '"Horizontal Spacing"' real 1 - '"Vertical Spacing"' real 1 - '"Minimum Contrast"' real 0 - '"Use Bold Font"' bool 1 - '"Use Bright Bold"' bool 1 - '"Use Italic Font"' bool 1 - '"ASCII Anti Aliased"' bool 1 - '"Non-ASCII Anti Aliased"' bool 1 - '"Use Non-ASCII Font"' bool 0 - '"Ambiguous Double Width"' bool 0 - '"Draw Powerline Glyphs"' bool 1 + '"Normal Font"' string '"MesloLGS-NF-Regular '$size'"' + '"Terminal Type"' string '"xterm-256color"' + '"Horizontal Spacing"' real 1 + '"Vertical Spacing"' real 1 + '"Minimum Contrast"' real 0 + '"Use Bold Font"' bool 1 + '"Use Bright Bold"' bool 1 + '"Use Italic Font"' bool 1 + '"ASCII Anti Aliased"' bool 1 + '"Non-ASCII Anti Aliased"' bool 1 + '"Use Non-ASCII Font"' bool 0 + '"Ambiguous Double Width"' bool 0 + '"Draw Powerline Glyphs"' bool 1 + '"Only The Default BG Color Uses Transparency"' bool 1 ) for k t v in $settings; do /usr/libexec/PlistBuddy -c "Set :\"New Bookmarks\":0:$k $v" \