Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

digitronik/python-xrectsel

Repository files navigation

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

About

Geometry of a rectangular screen region

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

Languages

AltStyle によって変換されたページ (->オリジナル) /