Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lu0/current-x-display-info
Get information from the current display on Linux-X11: pip3 install xdisplayinfo
https://github.com/lu0/current-x-display-info
bash-script cli-utility display-manager displayinfo linux-packages pip pip3 x11 xdisplayinfo xdotool xorg xrandr xserver
Last synced: about 2 months ago
JSON representation
Get information from the current display on Linux-X11: pip3 install xdisplayinfo
- Host: GitHub
- URL: https://github.com/lu0/current-x-display-info
- Owner: lu0
- License: gpl-3.0
- Created: 2022-05-15T02:21:28.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-07-14T23:31:47.000Z (over 2 years ago)
- Last Synced: 2024-10-16T17:41:25.758Z (3 months ago)
- Topics: bash-script, cli-utility, display-manager, displayinfo, linux-packages, pip, pip3, x11, xdisplayinfo, xdotool, xorg, xrandr, xserver
- Language: Shell
- Homepage: https://pypi.org/project/xdisplayinfo/
- Size: 71.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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`
```sh
pip3 install xdisplayinfo
```### Option B: Adding source script to `$PATH`
```sh
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.
```txt
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.
```