Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Containers shift on i3 restart #14

Closed
Syphdias opened this issue Jun 19, 2019 · 2 comments
Closed

Containers shift on i3 restart #14

Syphdias opened this issue Jun 19, 2019 · 2 comments

Comments

@Syphdias
Copy link

If I restart i3 after config changes. Sometimes my containers switch place. Can this be avoided?

Side note since it might be relevant: I use exec_always instead of exec because alternating_layouts.py dies at a restart with BrokenPipeError: [Errno 32] Broken pipe.

# i3 --moreversion
Binary i3 version:  4.16.1 (2019-01-27) © 2009 Michael Stapelberg and contributors
Running i3 version: 4.16.1 (2019-01-27) (pid 1411)abort…)
Loaded i3 config: /home/user/.i3/config (Last modified: Wed 19 Jun 2019 04:52:47 PM CEST, 164 seconds ago)

The i3 binary you just called: /usr/bin/i3
The i3 binary you are running: i3
@olemartinorg
Copy link
Owner

Huh, that's strange.. I sadly believe it can be avoided. The way this script works is that it keeps switching you between horizontal and vertical splits depending on where you currently have more space available. When the windows have been opened, the script no longer interferes with where they are placed - so if your windows are shuffled when restarting i3wm that's on i3wm.

The broken pipe error happens because the connection to i3wm dies. It could be fixed with some error handling code that tries to reconnect, but honestly I haven't been touching python for very long now, and I haven't used this script myself since making it.. ;-) I'll have a look into it and see if there's an easy fix, though.

@Syphdias
Copy link
Author

that's on i3wm

Actually, it's on me. Sorry about that. I have some for_window statements which trigger on certain types of windows to get them to the right position on open (setting width and moving it to the left). This is triggered by the restart, of course.
Somehow I never ran into this until now and apparently closed the window that was giving me trouble while debugging this, thus leaving me to believe it was the removal of i3-alternating-layout that fixed the issue.

The broken pipe error happens because the connection to i3wm dies.

It looks like i3-py is no longer being maintained. For now, the exec_always works for me, thank you 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants