Option to disable bell symbol on tab

This commit is contained in:
Kovid Goyal 2018-05-02 22:05:38 +05:30
parent f2afba2ef4
commit 8d51edec17
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
3 changed files with 6 additions and 1 deletions

View File

@ -353,6 +353,7 @@ type_map = {
'copy_on_select': to_bool,
'window_alert_on_bell': to_bool,
'tab_bar_edge': tab_bar_edge,
'bell_on_tab': to_bool,
'kitty_mod': to_modifiers,
'clear_all_shortcuts': to_bool,
}

View File

@ -170,6 +170,10 @@ enable_audio_bell yes
# Request window attention on bell.
# Makes the dock icon bounce on macOS or the taskbar flash on linux.
window_alert_on_bell yes
# Show a bell symbol on the tab if a bell occurs in one of the windows in the
# tab and the window is not the currently focused window
bell_on_tab yes
# }}}

View File

@ -366,7 +366,7 @@ class TabBar: # {{{
before = s.cursor.x
if self.leading_spaces:
s.draw(' ' * self.leading_spaces)
if t.needs_attention:
if t.needs_attention and self.opts.bell_on_tab:
s.cursor.fg = self.bell_fg
s.draw('🔔 ')
s.cursor.fg = fg