The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
2

Split Configuration

asked Aug 21 '13

Is it possible to split the configuration file into modules? Lets say I just use the ~/.i3/config as an entry point to import e.g. ~/.i3/keybindings or ~/.i3/whatever. In this scenario one could use some VCS to synchronize the modules over multiple nodes and just need to modify the ~/.i3/config to import certain modules on each node.

Short motivation: For example on notebooks I want to start services like xfce4-power-manager, which are overhead on desktop PC's. So it would be great if one could out-source this to e.g. ~/.i3/notebook...

1 answer

Sort by » oldest newest most voted
1

answered Aug 21 '13

Michael gravatar image

Yeah, just use ~/.xsession (or xinitrc, or whichever one you use) and cat to produce a config file before i3 starts.

Comments

Wow, that was fast ;-) thank you!

binfalse gravatar imagebinfalse (Aug 21 '13)edit

Question Tools

Stats

Asked: Aug 21 '13

Seen: 399 times

Last updated: Aug 21 '13