Bug: Iterm2 window height is smaller than expected when using yabai
I'm using the following versions of iTerm2 and OS.
- iTerm2 version: 3.3.12
- OS version: 10.15.6
I'm using yabai
for my window manager on MacOS. The following are my settings:
#!/usr/bin/env sh
# global settings
yabai -m config mouse_follows_focus off
yabai -m config focus_follows_mouse off
yabai -m config window_placement first_child
yabai -m config window_topmost off
yabai -m config window_opacity off
yabai -m config window_opacity_duration 0.0
yabai -m config window_shadow off
yabai -m config window_border on
yabai -m config window_border_placement inset
yabai -m config window_border_width 0
yabai -m config window_border_radius -1.0
yabai -m config active_window_border_topmost on
yabai -m config active_window_border_color 0xff775759
yabai -m config normal_window_border_color 0xff505050
yabai -m config insert_window_border_color 0xffd75f5f
yabai -m config active_window_opacity 1.0
yabai -m config normal_window_opacity 0.90
yabai -m config split_ratio 0.50
yabai -m config auto_balance on
yabai -m config mouse_modifier fn
yabai -m config mouse_action1 move
yabai -m config mouse_action2 resize
# general space settings
yabai -m config layout bsp
yabai -m config top_padding 20
yabai -m config bottom_padding 20
yabai -m config left_padding 20
yabai -m config right_padding 20
yabai -m config window_gap 20
As you can see, I have set the padding at the top, left, right and bottom to 20. This works as expected in Firefox, Chrome and other applications. However, in iTerm2 the bottom padding is more than 20.
I've attached a screenshot of what this looks like:
I'm not sure if it is super obvious from the screenshot but if you squint you'll probably notice that the spacing at the bottom is bigger than that of the top, left and right. I believe yabai
is changing the macos viewport/window size of the application, and isn't really aware of what the application is. So I'm not sure why Iterm2 is doing something different here.
Any ideas on what might be going on?