Geometry of a rectangular screen region
Project description
python-xrectsel
Geometry of a rectangular screen region
The project idea based on xrectsel. Its Python variant with some enhancements.
Installation:
pip install python-xrectsel
Usage:
❯ xrectsel --help
Usage: xrectsel [OPTIONS]
Options:
-f, --format TEXT Format output string with fallowing options:
%x - start x-coordinate
%y - start y-coordinate
%X - start
%Y - end
%w - width
%h - height
Note: default output is in "%wx%h+%x+%y"
format.
-ci, --cursor-icon [crosshair|cross|pencil|dotbox]
Select cursor icon
-cf, --cursor-foreground <INTEGER INTEGER INTEGER>...
Select cursor foreground color
-cb, --cursor-background <INTEGER INTEGER INTEGER>...
Select cursor background color
-h, --help Show this message and exit.
- We can collect selected region geometry just by command
xrectsel
. Default format is%wx%h+%x+%y
$ xrectsel
$ # select rectangle on sreen
901x634+44+7 #(x-coordinate, y-coordinate, width, height)
- We can format output geometry string
$ xrectsel -f "--x=%x --y=%y --width=%w --height=%h"
--x=264 --y=387 --width=1204 --height=519
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python-xrectsel-1.4.tar.gz
(7.8 kB
view details)
Built Distribution
File details
Details for the file python-xrectsel-1.4.tar.gz
.
File metadata
- Download URL: python-xrectsel-1.4.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b33a97ab3abca5729c14e503d76ef4ffc3e895643c79b0f54d63e33a0429ba76 |
|
MD5 | f60989f180a87a58e37be0c90fb82698 |
|
BLAKE2b-256 | 072304b8f74bd41c4ae82e190902caea33f240e013917cf0e6679339ffb38372 |
File details
Details for the file python_xrectsel-1.4-py3-none-any.whl
.
File metadata
- Download URL: python_xrectsel-1.4-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 144b38aa5078b26d3d5e8e8b4fb391c867932f2d22def060f77c5cfa84d6c4ce |
|
MD5 | 11bae9b83dc096d933df4dc3c88b2edf |
|
BLAKE2b-256 | 0b41d03e9d52c9a0cbc7d8dc1a7da184a7be89602ef349084b8f8d0dde4c626f |