kovidgoyal / kitty

Cross-platform, fast, feature-rich, GPU based terminal
https://sw.kovidgoyal.net/kitty/
GNU General Public License v3.0
24.66k stars 989 forks source link

Variable referencing in config #2013

Closed amanjitsk closed 5 years ago

amanjitsk commented 5 years ago

This might be a silly question, but is there a way of referencing variables in the config ? For example, I'd like to define active_border_color to be equal to the value of the variable color3. Is this currently possible ? I'd like to avoid hard-coding as I use pywal to configure colors dynamically, and would like to able to style the border colors based on that.

Best, Amanjit

kovidgoyal commented 5 years ago

Not directly, but you can use the include directive which supports environment variables to dynamically include conf files. See https://sw.kovidgoyal.net/kitty/conf.html