Option to disable bell symbol on tab
This commit is contained in:
@@ -353,6 +353,7 @@ type_map = {
|
|||||||
'copy_on_select': to_bool,
|
'copy_on_select': to_bool,
|
||||||
'window_alert_on_bell': to_bool,
|
'window_alert_on_bell': to_bool,
|
||||||
'tab_bar_edge': tab_bar_edge,
|
'tab_bar_edge': tab_bar_edge,
|
||||||
|
'bell_on_tab': to_bool,
|
||||||
'kitty_mod': to_modifiers,
|
'kitty_mod': to_modifiers,
|
||||||
'clear_all_shortcuts': to_bool,
|
'clear_all_shortcuts': to_bool,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -170,6 +170,10 @@ enable_audio_bell yes
|
|||||||
# Request window attention on bell.
|
# Request window attention on bell.
|
||||||
# Makes the dock icon bounce on macOS or the taskbar flash on linux.
|
# Makes the dock icon bounce on macOS or the taskbar flash on linux.
|
||||||
window_alert_on_bell yes
|
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
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -366,7 +366,7 @@ class TabBar: # {{{
|
|||||||
before = s.cursor.x
|
before = s.cursor.x
|
||||||
if self.leading_spaces:
|
if self.leading_spaces:
|
||||||
s.draw(' ' * 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.cursor.fg = self.bell_fg
|
||||||
s.draw('🔔 ')
|
s.draw('🔔 ')
|
||||||
s.cursor.fg = fg
|
s.cursor.fg = fg
|
||||||
|
|||||||
Reference in New Issue
Block a user