I want to be able to change my colorsheme from a script. I have a file which I replace with the different color shemes (from this repo). Currently I have a "base" file with everything but the colors and I use bindsym $mod+Shift+c exec "cat ~/.config/i3/colors ~/.config/i3/base > ~/.config/i3/config && i3-msg reload"
to build the "real" config from the two files. A much more elegant solution would be to source
/import
the "colors"-file in the config. Unfortunately I couldn't find anything related.
Is it possible to import variables in the i3 config from another file?
Since i3 v4.20, it is possible to include other configuration files from your i3 configuration.