1
0

Show names of outputs available to the X server.

Fabian Peter Hammerle 6619a965f6 prefix ctypes / structs 7 жил өмнө
scripts 6619a965f6 prefix ctypes / structs 7 жил өмнө
.gitignore 8b7681436a list names of all available outputs 7 жил өмнө
LICENSE 8b7681436a list names of all available outputs 7 жил өмнө
README.md 033c2ab5c1 readme: added info about use of ctypes 7 жил өмнө
setup.cfg 8b7681436a list names of all available outputs 7 жил өмнө
setup.py a092730273 adapt repo url; added setup instructions 7 жил өмнө

README.md

xrandrl

Show names of outputs available to the X server.

This script uses python's ctypes library to access libX11 and libXrandr.

Requirements

sudo apt-get install python3 libx11-dev libxrandr-dev

Installation

$ pip3 install --user --upgrade git+https://github.com/fphammerle/xrandrl

Usage

xrandrl [-h] [-c] [-d] [-e]

optional arguments:
  -c, --connected  connected only
  -d, --disabled   disabled only (does not imply --connected)
  -e, --enabled    enabled only (does not imply --connected)
  -h, --help       show help message and exit

Examples

$ xrandrl --connected
eDP2
DP2-1
DP2-2

$ xrandrl --enabled
eDP2
DP2-2

$ xrandrl --connected --disabled
DP2-1

$ xrandrl
eDP2
DP1
DP2
DP2-1
DP2-2
DP2-3
HDMI1
HDMI2
VGA1
VIRTUAL1
eDP-1-1
DVI-D-1-1