tmerr / i3ipc-rs

A Rust library for controlling i3-wm through its IPC interface
MIT License
107 stars 33 forks source link

Add sway support #28

Closed emersion closed 6 years ago

tmerr commented 6 years ago

Interesting, could you please add a comment that this is not well tested / supported? I'm not familiar with Sway, and don't have the time to guarantee compatibility.

Aside, this lib would probably benefit with containerized integration tests of some sort.. someday

emersion commented 6 years ago

Interesting, could you please add a comment that this is not well tested / supported? I'm not familiar with Sway, and don't have the time to guarantee compatibility.

Just done that. Note that sway has the goal to be fully compatible with i3, so if there's a bug it will probably be on our end.

tmerr commented 6 years ago

Ack.

Aside, should there be an equivalent to i3 --get-socketpath as fallback?

emersion commented 6 years ago

Aside, should there be an equivalent to i3 --get-socketpath as fallback?

sway --get-socketpath is implemented but is literally getenv("SWAYSOCK"), so there's no point in supporting it right now. See https://github.com/swaywm/sway/issues/2639