From 1451a8ccc05e17037e97ff845754b511a05d4a3b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 5 Sep 2018 07:36:13 +0530 Subject: [PATCH] Add a new --start-in-fullscreen command line flag Fixes #856 --- docs/changelog.rst | 3 +++ kitty/boss.py | 2 ++ kitty/cli.py | 5 +++++ 3 files changed, 10 insertions(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index cc7d0cab7..048ece028 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -6,6 +6,9 @@ Changelog 0.12.1 [future] ------------------------------ +- Add a new :option:`kitty --start-in-fullscreen` command line flag to start + kitty in fullscreen mode (:iss:`856`) + - macOS: Fix a character that cannot be rendered in any font causing font fallback for all subsequent characters that cannot be rendered in the main font to fail (:iss:`799`) diff --git a/kitty/boss.py b/kitty/boss.py index 93a15e3cd..0e8867375 100644 --- a/kitty/boss.py +++ b/kitty/boss.py @@ -103,6 +103,8 @@ class Boss: if new_os_window_trigger is not None: self.keymap.pop(new_os_window_trigger, None) self.add_os_window(startup_session, os_window_id=os_window_id) + if args.start_in_fullscreen: + self.toggle_fullscreen() def add_os_window(self, startup_session, os_window_id=None, wclass=None, wname=None, opts_for_size=None, startup_id=None): if os_window_id is None: diff --git a/kitty/cli.py b/kitty/cli.py index 0dee0c57e..2dd546703 100644 --- a/kitty/cli.py +++ b/kitty/cli.py @@ -546,6 +546,11 @@ specify this address. This option will be ignored, unless you set option as it is read automatically from the environment. +--start-in-fullscreen +type=bool-set +Make the initial kitty window fullscreen on startup + + # Debugging options --version -v