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.
Metadata
Release files for xdisplayinfo 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| xdisplayinfo-2.0.1.tar.gz | 15.7 kB | Without provenance | Details for xdisplayinfo-2.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xdisplayinfo-2.0.1-py3-none-any.whl | Python 3 | none | any | Details for xdisplayinfo-2.0.1-py3-none-any.whl |
Total release size: 33.5 kB
Release files / xdisplayinfo-2.0.1.tar.gz
| Download URL | xdisplayinfo-2.0.1.tar.gz |
|---|---|
| Size | 15.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d02586472338550f5be4243084daf3b95eb827440bf2ea9d2dae4af24da9b2f8
|
|
BLAKE2b-256 checksum How to use checksums |
3870d62438d10ffecbe803219298adcc0752285fef40391e282ea2d8a5fd11b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.7.3
|
Release files / xdisplayinfo-2.0.1-py3-none-any.whl
| Download URL | xdisplayinfo-2.0.1-py3-none-any.whl |
|---|---|
| Size | 17.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9a409db831126ad2022885d8f6a955f49fcd13a9a6e3eaa9db6941c57adefdcd
|
|
BLAKE2b-256 checksum How to use checksums |
69e82a802bfbdf63f8de73efa9ace3af1aa8b73e0c16ee7b1433da56c46e4cc5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.7.3
|
Security for xdisplayinfo 2.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.