From 61eb91c1154d2fca9a35d4c4a7ccfccb57dd96dd Mon Sep 17 00:00:00 2001 From: alex-huff Date: Mon, 3 Mar 2025 22:43:11 -0600 Subject: [PATCH] Fix sample mywatcher.py code block The provided mywatcher.py script did not work because of improper indentation --- docs/launch.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/launch.rst b/docs/launch.rst index b3f7f0d5a..e740ba7ae 100644 --- a/docs/launch.rst +++ b/docs/launch.rst @@ -168,7 +168,7 @@ create :file:`~/.config/kitty/mywatcher.py` and use :option:`launch --watcher` = # data will contain is_start, cmdline and time. ... - def on_color_scheme_preference_change(boss: Boss, window: Window, data: dict[str, Any]) -> None: + def on_color_scheme_preference_change(boss: Boss, window: Window, data: dict[str, Any]) -> None: # called when the color scheme preference of this window changes from # light to dark or vice versa. data contains is_dark and via_escape_code # the latter will be true if the color scheme was changed via escape