From 42da681f2b0d70f30cca3aed45e147dac19c1f74 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 19 Aug 2021 09:52:52 +0530 Subject: [PATCH] Launch command: Allow specifying the OS window title --- docs/changelog.rst | 2 ++ kitty/launch.py | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index e0e8180b5..93d529c40 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -26,6 +26,8 @@ To update |kitty|, :doc:`follow the instructions `. - macOS: Fix SIGUSR1 quitting kitty instead of reloading the config file (:iss:`3952`) +- Launch command: Allow specifying the OS window title + 0.23.1 [2021-08-17] ---------------------- diff --git a/kitty/launch.py b/kitty/launch.py index da1aa8724..9952cf6b9 100644 --- a/kitty/launch.py +++ b/kitty/launch.py @@ -164,6 +164,11 @@ Set the WM_NAME property on X11 for the newly created OS Window when using :option:`launch --type`=os-window. Defaults to :option:`launch --os-window-class`. +--os-window-title +Set the title for the newly created OS window. This title will override any +titles set by programs running in kitty. + + --color type=list Change colors in the newly launched window. You can either specify a path to a .conf @@ -204,7 +209,7 @@ def tab_for_window(boss: Boss, opts: LaunchCLIOptions, target_tab: Optional[Tab] else: tab = None elif opts.type == 'os-window': - oswid = boss.add_os_window(wclass=opts.os_window_class, wname=opts.os_window_name) + oswid = boss.add_os_window(wclass=opts.os_window_class, wname=opts.os_window_name, override_title=opts.os_window_title or None) tm = boss.os_window_map[oswid] tab = tm.new_tab(empty_tab=True) if opts.tab_title and tab is not None: