mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-17 06:11:21 +01:00
This commit migrates another bunch of code from komorebi to start implementing inter-process communication using Unix domain sockets. For this commit a small subsection of the SocketMessage with maximum utility has been migrated: FocusWindow, MoveWindow, ChangeLayout, and TogglePause. This includes migrating their handlers in process_command, and setting up a UnixListener when creating a WindowManager instance. To be able to test this functionality I also implemented a basic skeleton of komorebic and migrated the komorebi-client library. There are some random fixes included here now that we are listening to a UnixListener on a separate thread, which includes wrapping structs from the objc2 crate which don't have Send and Sync implemented, so that they can be implemented in the komorebi lib. I also took the time to figure out how to calculate a monitor's work area size, excluding the dock and the menu bar, and started to split out Workspace and Monitor into their own modules. It looks like a lot of changes but most if this is just pulling in stuff from the Windows implementation.
19 lines
375 B
TOML
19 lines
375 B
TOML
[workspace]
|
|
|
|
resolver = "2"
|
|
members = [
|
|
"komorebi", "komorebi-client",
|
|
"komorebic",
|
|
]
|
|
|
|
|
|
[workspace.dependencies]
|
|
clap = { version = "4", features = ["derive", "wrap_help"] }
|
|
color-eyre = "0.6"
|
|
dirs = "6"
|
|
lazy_static = "1"
|
|
pastey = "0.1"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = { package = "serde_json_lenient", version = "0.2" }
|
|
thiserror = "2"
|