-
Notifications
You must be signed in to change notification settings - Fork 15
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
Document client/server mode #52
Comments
Latency is a big problem that prevents me from using |
Hey @orhun sorry for the delay. I will do a release to Pypi later this week and add better instructions, but just to get you going (if you're ok with installing directly from source), you need to do two things:
|
Hey, just tried this and there is a noticeable speed difference! Nice. Can you share your systemd unit and save me from writing one from scratch? Also, it would be nice to finalize this feature and have a new release. I had to install the |
Hey @orhun my apologies for not doing the release yet and adding docs yet, hopefully it will actually happen this week. [Unit]
Description=i3 workspace groups server
# Makes sure that this unit is stopped when the graphical session is terminated.
# https://www.freedesktop.org/software/systemd/man/systemd.special.html#graphical-session.target
BindsTo=graphical-session.target
After=graphical-session.target
[Service]
Type=simple
Restart=on-failure
RestartSec=5
# Wait for i3 socket to be available.
# NOTE: this may no longer be needed since i3 4.20 supports systemd notify.
ExecStartPre=bash -c 'while true; do i3-msg nop &> /dev/null && break; sleep 1; done'
ExecStart=i3-workspace-groups --log-level info server The unit file I'm using is in my dotfiles repo, but it's slightly different because runs the code from source, and also has a complex systemd setup where i3 itself also runs as a unit. You can then activate the server from your i3 config, for example using Please let me know if that works. |
Unfortunately the systemd service did not work for me. I'm getting: Jan 06 16:10:17 thinkpad systemd[1709]: Starting i3 workspace groups server...
Jan 06 16:11:47 thinkpad systemd[1709]: i3-workspace-groups-server.service: start-pre operation timed out. Terminating.
Jan 06 16:11:47 thinkpad systemd[1709]: i3-workspace-groups-server.service: Control process exited, code=killed, status=15/TERM
Jan 06 16:11:47 thinkpad systemd[1709]: i3-workspace-groups-server.service: Failed with result 'timeout'.
Jan 06 16:11:47 thinkpad systemd[1709]: Failed to start i3 workspace groups server. It is due to: ExecStartPre=bash -c 'while true; do i3-msg nop &> /dev/null && break; sleep 1; done' I am able to run $ i3-msg
[] So I'm thinking it is because the systemd unit cannot access i3 or something. When I remove this pre-start condition, I get:
Which I think corrects my theory. |
I managed to start the server via:
But it is not working correctly, I get new workspaces (after 10th one) instead of a separate group. |
@orhun sorry for the issues, indeed I forgot to add that for importing relevant environment variables, I have a separate service file which automatically runs (because of |
@orhun can you please clarify this? |
@orhun I uploaded a preview version to pypi, so you can install it without cloning the repo: |
I gave up on systemd and put
|
@orhun another option you have, in case it helps, is to start it from your i3 config (using And is latency good enough now? |
Yes, both running
Thank you! 🙏🏼
Yes! It is not even noticeable 🚀 |
Another thing that I realized is the previous workspace is not restored when I switch between groups. For example:
|
@orhun thanks for the feedback, great to hear that latency is now good enough! |
@orhun regarding multiple TTYs, each running i3wm/sway, it's supported, but you need to make sure that:
|
@orhun update: I just pre-released a version to pypi that uses |
I just tried the latest git version and it worked for both ttys! Also, for some reason 11th workspace issue is gone for me as well. It's all good now, thanks! |
Here is how I integrated |
Great, if the issue is back, let me know and we can troubleshoot. |
No description provided.
The text was updated successfully, but these errors were encountered: