How do I make part of config file conditional? [closed]

asked 2014-05-05 10:32:55 +0000

smiszym gravatar image

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 #ifdefs, bash programmers can use environment variables and ifs. What mechanism does i3 provide?

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by joepd
close date 2014-05-05 20:04:29.286963

Comments