Skip to content

Dynamically reload kitty configuration file #143

@bthiebault

Description

@bthiebault

As stated on the developer's github, Kitty does not and will not provide the function to reload its configuration file without restarting it.

However, there is a workaround to make astrality do it. The requirement is to execute kitty using the following command line:

kitty --single-instance

Then, create a kitty module.yml:

kitty:
    requires:
        - installed: kitty

    on_startup:
        compile:
            - content: kitty.conf.template
              target: ~/.config/kitty/kitty.conf
        run:
            - shell: kitty @ set-colors --all --configured ~/.config/kitty/kitty.conf

    on_modified:
        modules/kitty/kitty.conf.template:
            compile:
                - content: kitty.conf.template
                  target: ~/.config/kitty/kitty.conf
            run:
                - shell: kitty @ set-colors --all --configured ~/.config/kitty/kitty.conf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions