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: 4.3+
  • xdotool: 3.20160805+
  • xrandr: 1.5.0+
  • grep: 3.4+

Installation

Option A: Using pip

pip3 install xdisplayinfo

Option B: Adding source script to $PATH

git clone https://github.com/lu0/current-x-display-info
cd current-x-display-info/src/scripts/
ln -srf xdisplayinfo ~/.local/bin/xdisplayinfo

Usage

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

Get information of the current display on systems using X.

USAGE:
  xdisplayinfo   [OPTION]

OPTIONS:
  --window-id    ID of the active window (decimal).
  --offset-y     Y coordinate of the top-left corner.
  --offset-x     X coordinate of the top-left corner.
  --resolution   Resolution as [width]x[height].
  --height       Resolution along the Y axis.
  --width        Resolution along the X axis.
  --name         Name of the current display.
  --all          All 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-2.0.1.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

xdisplayinfo-2.0.1-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for xdisplayinfo-2.0.1.tar.gz
Algorithm Hash digest
SHA256 d02586472338550f5be4243084daf3b95eb827440bf2ea9d2dae4af24da9b2f8
MD5 3e7ec62d89d3c3910e8f15aa84ac5dad
BLAKE2b-256 3870d62438d10ffecbe803219298adcc0752285fef40391e282ea2d8a5fd11b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for xdisplayinfo-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9a409db831126ad2022885d8f6a955f49fcd13a9a6e3eaa9db6941c57adefdcd
MD5 81527fdb2398bd81b7ad0bcf377b103d
BLAKE2b-256 69e82a802bfbdf63f8de73efa9ace3af1aa8b73e0c16ee7b1433da56c46e4cc5

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