Skip to main content

Utility to get information of the current display in systems using X.

Project description

X Display Info

Linux CLI utility to easily get information of the current display, the one the mouse is hovered over, in systems using X server.

Dependencies

Tested with the following dependencies, installed by default in most Linux distributions using X:

  • bash: 5
  • xdotool: 3.20160805+
  • xrandr: 1.5.0+
  • grep: 3.4+
  • python: 3.7+

Installation

Using PyPI:

sudo apt-get install python3-pip
python3 -m pip install xdisplayinfo

Usage

Run xdisplayinfo --help to see the list of available options.

Get information of the current display on systems using X.

USAGE:
   xdisplayinfo   [OPTIONS]

OPTIONS:
   --name        Name of the current display.
   --resolution  Resolution.
   --offset-x    X coordinate of the top-left corner.
   --offset-y    Y coordinate of the top-left corner.
   --width       Width (resolution along the X axis).
   --height      Height (resolution along the Y axis).
   --window-id   ID of the active window (decimal).
   --all         All previous properties.

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

xdisplayinfo-1.0.1.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

xdisplayinfo-1.0.1-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file xdisplayinfo-1.0.1.tar.gz.

File metadata

  • Download URL: xdisplayinfo-1.0.1.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.3

File hashes

Hashes for xdisplayinfo-1.0.1.tar.gz
Algorithm Hash digest
SHA256 afdc5f4dd3df943198d99c29cf809dc5190a511590da53ed1eda5719d823f7d1
MD5 2437bb9b87f21cdfb823b1d603a5edfd
BLAKE2b-256 5f84d57e0a53803614559b025894bcfe99bf9dd452ac06eb8982f436a359ef2b

See more details on using hashes here.

Provenance

File details

Details for the file xdisplayinfo-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for xdisplayinfo-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 616a88275ada7272d60492dc0c51458fd6e97ea82ec20ef9bda00e7075640288
MD5 bc301f2912cf7114c8b278f2da79d9d1
BLAKE2b-256 58edf27c81fd4e71340008e69a53b95feaaf848d0eefdfa563baf2fb7403d0dc

See more details on using hashes here.

Provenance

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