Launch command: Allow specifying the OS window title

This commit is contained in:
Kovid Goyal 2021-08-19 09:52:52 +05:30
parent 44561e8cea
commit 42da681f2b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 8 additions and 1 deletions

View File

@ -26,6 +26,8 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
- macOS: Fix SIGUSR1 quitting kitty instead of reloading the config file (:iss:`3952`) - 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] 0.23.1 [2021-08-17]
---------------------- ----------------------

View File

@ -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`. :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 --color
type=list type=list
Change colors in the newly launched window. You can either specify a path to a .conf 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: else:
tab = None tab = None
elif opts.type == 'os-window': 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] tm = boss.os_window_map[oswid]
tab = tm.new_tab(empty_tab=True) tab = tm.new_tab(empty_tab=True)
if opts.tab_title and tab is not None: if opts.tab_title and tab is not None: