feat(options): notify when long commands finish by default

The notification only happened if notify_on_cmd_finish was passed on the
command line or written in kitty.conf, so a fresh build looked like it had no
such feature at all. Long-running commands now notify by default once the
window loses focus; the 5 second threshold keeps short commands silent.
This commit is contained in:
BlackAngelTV committed 2026-11-11 10:59:11 +01:00
1 parent 8f8d2526ab
commit d6bdffca10
3 files changed
+9 -2

No files matched your search

+1 -1
View File
@@ -640,7 +640,7 @@ class Options:
mark3_foreground: Color = Color(0, 0, 0)
momentum_scroll: float = 0.96
mouse_hide_wait: MouseHideWait = MouseHideWait(hide_wait=0.0, show_wait=0.0, show_threshold=40, scroll_show=True) if is_macos else MouseHideWait(hide_wait=3.0, show_wait=0.0, show_threshold=40, scroll_show=True)
notify_on_cmd_finish: NotifyOnCmdFinish = NotifyOnCmdFinish(when='never', duration=5.0, action='notify', cmdline=(), clear_on=('focus', 'next'))
notify_on_cmd_finish: NotifyOnCmdFinish = NotifyOnCmdFinish(when='unfocused', duration=5.0, action='notify', cmdline=(), clear_on=('focus', 'next'))
open_url_with: list[str] = ['default']
padding_fill_strategy: choices_for_padding_fill_strategy = 'background'
palette_generate: choices_for_palette_generate = 'fixed'