The i3 FAQ has migrated to All content here is read-only.
Ask Your Question

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

asked 2012-06-29 11:20:30 +0000

luciusf gravatar image

updated 2012-06-29 11:24:58 +0000

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.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2012-06-29 15:32:12 +0000

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.

edit flag offensive delete link more


All too easy. Thanks a lot!!

luciusf gravatar imageluciusf ( 2012-06-29 17:15:02 +0000 )edit

Question Tools


Asked: 2012-06-29 11:20:30 +0000

Seen: 310 times

Last updated: Jun 29 '12