lu0 / current-x-display-info

Get information from the current display on Linux-X11: pip3 install xdisplayinfo
https://pypi.org/project/xdisplayinfo/
GNU General Public License v3.0
1 stars 0 forks source link
bash-script cli-utility display-manager displayinfo linux-packages pip pip3 x11 xdisplayinfo xdotool xorg xrandr xserver

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:

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.