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
+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.0.tar.gz
(15.7 kB
view hashes)
Built Distribution
Close
Hashes for xdisplayinfo-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0be6684b2a9e6ea4220f7d6f87f765bb04a364bc4d1bcf14bfe8af52a701b5ec |
|
MD5 | dc363df5b28f039440f0bc3caa5e29d0 |
|
BLAKE2b-256 | fb4665b0408b5fca208bf972c4db72ae5d1a29485e0a9a1ba1c6a35b01d0feb1 |