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
2021-02-27 10:38:13 +01:00
2020-06-16 22:27:39 +02:00
2021-01-03 10:17:43 +01:00
2020-05-19 14:45:06 +02:00
2020-10-20 09:36:44 +02:00
2020-05-19 14:45:06 +02:00
2021-02-27 10:37:57 +01:00

Logo i3: A tiling window manager

Build Status Issue Stats Pull Request Stats

Packages Packages

i3 is a tiling window manager for X11.

For more information about i3, please see the project's website and online documentation.

For information about contributing to i3, please see CONTRIBUTING.md.

Description
No description provided
Readme 18 MiB
Languages
C 58.4%
Perl 36%
Raku 2.6%
Ruby 1.2%
Shell 0.7%
Other 1.1%