maxwellainatchi / gnome-randr-rust

`xrandr` for Gnome/wayland, on distros that don't support `wlr-randr`
97 stars 8 forks source link

Add XY movement & refactor monitor types #18

Open FractalMachinist opened 2 years ago

FractalMachinist commented 2 years ago

Main Change

Created an Action to handle changing monitor position in X and Y. Tied this action into the CLI. Tested functionality - tests pass.

Secondary Changes

This change also led me to refactor most of display_config. physical_monitor and virtual_monitor now share distinct types for:

There are no longer two 'rotation' types ("Actions::Rotation" and "LogicalMonitor::Transform") - Actions::Rotation has been superseded, extending the CLI's rotation capabilities to include flipping, without breaking previous behavior.

I'm relatively new to Open Source / GitHub tradition, and I'm very very new to Rust. If there's something I can do to help in any way, or if I've made a mistake in some way, please let me know.