1
0
Fork 0
forked from wry/wry
wry/toml-config/src
Arthur Heymans 5529306c67 feat(config): Add directional output selection via separate direction field
Add support for directional output selection in the move-to-output action
using a separate `direction` field instead of overloading OutputMatch.

API additions:
- Add Workspace::connector() to get the connector showing a workspace
- Add Connector::connector_in_direction() to find outputs directionally

Implementation:
- Move directional finding logic from toml-config to compositor
- Algorithm uses center-to-center distance with axis-aligned preference
- Add GetWorkspaceConnector and GetConnectorInDirection IPC messages

Configuration changes:
- Add optional `direction` field to move-to-output action
- Either `output` or `direction` must be specified (not both)
- Valid directions: "left", "right", "up", "down"

Example usage:
  logo+control+shift+right = { type = "move-to-output", direction = "right" }

Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
2025-11-28 13:14:25 +01:00
..
config feat(config): Add directional output selection via separate direction field 2025-11-28 13:14:25 +01:00
toml all: use let chains 2025-07-01 11:20:48 +02:00
config.rs feat(config): Add directional output selection via separate direction field 2025-11-28 13:14:25 +01:00
default-config.toml wayland: implement jay-tray-v1 2024-10-24 09:27:32 +02:00
lib.rs feat(config): Add directional output selection via separate direction field 2025-11-28 13:14:25 +01:00
rules.rs config: allow configuring client capabilities 2025-09-18 21:17:34 +02:00
shortcuts.rs toml-config: add input modes 2025-07-21 15:51:32 +02:00
toml.rs config: change default config to use toml-based configuration 2024-03-16 04:22:27 +01:00