i3/include
Michael Stapelberg eaa5e636f9
Implement include config directive (#4420)
The implementation uses wordexp(3) just like sway:
https://github.com/i3/i3/issues/1197#issuecomment-226844106

Thanks to jajm for their implementation at
bb55709d0a

This required refactoring the config parser to be re-entrant
(no more global state) and to return an error instead of dying.

In case a file cannot be opened, i3 reports an error but proceeds with the
remaining configuration.

Key bindings can be overwritten or removed using the new --remove flag of the
bindsym/bindcode directive.

All files that were successfully included are displayed in i3 --moreversion.

One caveat is i3 config file variable expansion, see the note in the userguide.

fixes #4192
2021-06-02 21:01:43 +02:00
..
2019-10-09 02:31:52 +03:00
2020-10-20 09:36:44 +02:00
2017-09-13 17:41:05 +02:00
2018-10-13 21:10:10 +03:00
2016-11-08 13:46:43 -08:00
2019-10-03 06:09:57 +00:00
2019-10-14 03:31:24 +03:00
2020-10-18 17:28:14 +02:00
2020-04-20 05:54:17 +02:00