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

Is there a way to switch the config file during runtime?

asked Jun 29 '12

luciusf gravatar image

updated Jun 29 '12

Is there a way to switch the config file during runtime? So i could mod+Shift+r into the new(other) one?

Reason is, that i don't want to logout and login when changing the external monitor to be primary (in combination with using an external keyboard). As the external monitor is bigger, it makes sense (in my usecase) to have different workspace settings.

1 answer

Sort by » oldest newest most voted
1

answered Jun 29 '12

Michael gravatar image

There’s no way to do that within i3. However, it’s easy to build a solution which works: Just have two configuration files (~/.i3/config.large_monitor and ~/.i3/config.small_monitor) and then symlink ~/.i3/config to the appropriate one. You can change the symlink at runtime and then just trigger an i3 reload or i3 restart.

Comments

All too easy. Thanks a lot!!

luciusf gravatar imageluciusf (Jun 29 '12)edit

Question Tools

Stats

Asked: Jun 29 '12

Seen: 310 times

Last updated: Jun 29 '12