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.2.tar.gz
(15.8 kB
view hashes)
Built Distribution
Close
Hashes for xdisplayinfo-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fb980fd75fe28a948cc78ca1898790ff095f620715abfb559f3336b20cdf5cc |
|
MD5 | 35382ad680d63e8ff0e5b97e1f9a72d0 |
|
BLAKE2b-256 | dbf95d7a1cefd387825d294d2b1a06ff1f5b0efded38462d7dcd8366ba2f4f1f |