mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-11-14 12:11:12 +03:00
Document the themes kitten
This commit is contained in:
parent
4645e78fa7
commit
4849e07c26
@ -7,6 +7,9 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
|
|||||||
0.23.0 [future]
|
0.23.0 [future]
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
|
- A new :doc:`themes kitten </kittens/themes>` to easily change kitty themes.
|
||||||
|
Choose from over two hundred themes in the kitty themes repository
|
||||||
|
|
||||||
- A new style for the tab bar that makes tabs looks like the tabs in a physical
|
- A new style for the tab bar that makes tabs looks like the tabs in a physical
|
||||||
tabbed file, see :opt:`tab_bar_style`
|
tabbed file, see :opt:`tab_bar_style`
|
||||||
|
|
||||||
|
@ -117,7 +117,14 @@ explicitly set a UTF-8 locale, like::
|
|||||||
How do I change the colors in a running kitty instance?
|
How do I change the colors in a running kitty instance?
|
||||||
------------------------------------------------------------
|
------------------------------------------------------------
|
||||||
|
|
||||||
You can either use the
|
The easiest way to do it is to use the :doc:`themes kitten </kittens/themes>`,
|
||||||
|
to choose a new color theme. Simply run::
|
||||||
|
|
||||||
|
kitty +kitten themes
|
||||||
|
|
||||||
|
And choose your theme from the list.
|
||||||
|
|
||||||
|
Additionally, You can use the
|
||||||
`OSC terminal escape codes <https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Operating-System-Commands>`_
|
`OSC terminal escape codes <https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Operating-System-Commands>`_
|
||||||
to set colors or you can define keyboard shortcuts to set colors, for example::
|
to set colors or you can define keyboard shortcuts to set colors, for example::
|
||||||
|
|
||||||
|
49
docs/kittens/themes.rst
Normal file
49
docs/kittens/themes.rst
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
Changing kitty colors
|
||||||
|
========================
|
||||||
|
|
||||||
|
The themes kitten allows you to easily change color themes, from a collection
|
||||||
|
of over two hundred pre-built themes available at `kitty-themes
|
||||||
|
<https://github.com/kovidgoyal/kitty-themes>`_. To use it, simply run::
|
||||||
|
|
||||||
|
kitty +kitten themes
|
||||||
|
|
||||||
|
The kitten allows you to pick a theme, with live previews of the colors. You
|
||||||
|
can choose between light and dark themes and search by theme name by just
|
||||||
|
typing a few characters from the name.
|
||||||
|
|
||||||
|
The kitten maintains a list of recently used themes to allow quick switching.
|
||||||
|
|
||||||
|
If you want to restore the colors to default, you can do so by choosing the
|
||||||
|
``Default`` theme.
|
||||||
|
|
||||||
|
How it works
|
||||||
|
----------------
|
||||||
|
|
||||||
|
A theme in kitty is just a :file:`.conf` file containing kitty settings.
|
||||||
|
When you select a theme, the kitten simply copies the :file:`.conf` file
|
||||||
|
to :file:`~/.config/kitty/current-theme.conf` and adds an include for
|
||||||
|
:file:`current-theme.conf` to :file:`kitty.conf`. It also comments out
|
||||||
|
any existing color settings in :file:`kitty.conf` so they do not interfere.
|
||||||
|
|
||||||
|
Once that's done, the kitten send kitty a signal to make it reload its config.
|
||||||
|
|
||||||
|
Using your own themes
|
||||||
|
-----------------------
|
||||||
|
|
||||||
|
You can also create your own themes as :file:`.conf` files. Put them in the
|
||||||
|
:file:`themes` sub-directory of the kitty config directory, usually,
|
||||||
|
:file:`~/.config/kitty/themes` and the kitten will automatically add them to
|
||||||
|
the list of themes. You can use this to modify the builtin themes, by giving
|
||||||
|
the conf file the name :file:`Some theme name.conf` to override the builtin
|
||||||
|
theme of that name. Note that after doing so you have to run the kitten and
|
||||||
|
choose that theme once for your changes to be applied.
|
||||||
|
|
||||||
|
|
||||||
|
Contributing new themes
|
||||||
|
-------------------------
|
||||||
|
|
||||||
|
If you wish to contribute a new theme to the kitty theme repository, simply
|
||||||
|
go to `kitty-themes <https://github.com/kovidgoyal/kitty-themes>`_ and open a pull request
|
||||||
|
asking to add your contributions to the repository. Use the file
|
||||||
|
`template.conf <https://github.com/kovidgoyal/kitty-themes/raw/master/template.conf>`_ as
|
||||||
|
a template when creating your theme.
|
Loading…
Reference in New Issue
Block a user