JakobGM / astrality

Astrality - A modular and dynamic configuration file manager
https://astrality.readthedocs.io
MIT License
98 stars 3 forks source link

Dynamically reload kitty configuration file #143

Open bthiebault opened 5 years ago

bthiebault commented 5 years ago

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