Skip to main content

Geometry of a rectangular screen region

Project description

python-xrectsel

Geometry of a rectangular screen region

Python Versions Build Status PyPI version License: GPLV3 Code style: black

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.3.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

python_xrectsel-1.3-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file python-xrectsel-1.3.tar.gz.

File metadata

  • Download URL: python-xrectsel-1.3.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for python-xrectsel-1.3.tar.gz
Algorithm Hash digest
SHA256 979550ddd268bf58682b097f99da86498e4a76f9739e7ac5c0b5fc3d1c7a7285
MD5 3f660333957ca5b90e1ef402fa7370c6
BLAKE2b-256 a228e26f8b823584491d9563ea6be2d33f47343f0e6e4a1535dbc16962bd5e8d

See more details on using hashes here.

File details

Details for the file python_xrectsel-1.3-py3-none-any.whl.

File metadata

  • Download URL: python_xrectsel-1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

File hashes

Hashes for python_xrectsel-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7cb351272546620178d1e4ccc949c38eb54b4e6a5597cc7b51e73298306acfea
MD5 6c4df97b6269862cf48aaf52ca55cc4c
BLAKE2b-256 5f2d7c0a20bca405e843e224b283faebd38aefee831ac9b542cb4827593bc12f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page