Crate to retrieve screen resolution/dimensions on Linux and macOS.
I have rewrite this same code so many times that it justifies existing.
cargo add resolution
resolution::current_resolution() -> Result<(i32, i32), resolution::ResolutionError>
It receives no parameter and returns current screen’s (width, height)
.