Crates.io | corner-calculator |
lib.rs | corner-calculator |
version | 0.1.3 |
source | src |
created_at | 2024-01-06 14:51:34.690028 |
updated_at | 2024-01-06 15:02:15.36974 |
description | Command line utility and lib to calculate new x+y coordinates for a window for a certain direction (=numpad key) based on existing based on given screen and window dimensions. |
homepage | |
repository | https://github.com/RobertMueller2/corner-calculator.git |
max_upload_size | |
id | 1090974 |
size | 9,222 |
Corner Calculator is a library with command-line utility written in Rust, designed to calculate new x and y coordinates based on a direction key (1-9 keypad style) and screen and window dimensions. It can be useful for window management scripts where you need to position windows in different corners or sides of the screen.
Clone the repository and build the project using Cargo:
git clone https://github.com/RobertMueller2/corner-calculator.git
cd corner-calculator
cargo build --release
To use Corner Calculator, run the executable with the following arguments:
corner-calculator <keypad direction|1-9> <screen width|0-65535> <screen height|0-65535> <window width|0-65535> <window height|0-65535>
Example:
corner-calculator 5 1920 1080 500 300
The crate is on crates.io.
This project is licensed under the MIT License - see the LICENSE file for details.
README kindly provided by ChatGPT. ;)