How do I make part of config file conditional? [closed]
I've been working on my configuration file for a long time now and I want to use it on a different computer and different OS. Most of things will remain as they were, but several lines of the file need modification (e.g., fonts).
I know I could just modify those lines. But I prefer to have just one version of the file that is universal across computers and here's why:
- it could be tracked with a version-control system, so
- I could keep improving it and simply pulling the changes from a VCS server,
- it would be easily adaptable to any new platform.
C preprocessor provides macros and #ifdef
s, bash programmers can use environment variables and if
s. What mechanism does i3 provide?
dupe: https://faq.i3wm.org/question/1367/anyway-to-include-in-config-file/