A command line tool with no external dependencies to print information about an X server instance.

Related tags

CLI x11 dump xserver
Overview

xinfo

A command line tool with no external dependencies to print information about an X server instance.

Building and running

To build the code in this repository, run

$ make

The latter command produces the xinfo executable, which can be run to get information about the X server running for the current session.

$ ./xinfo

A different X display can be selected by setting the DISPLAY environment variable such that

$ DISPLAY=hostname:D.S ./xinfo

returns information about display D and screen S on host hostname.

Sample output

Here is an example of the output produced by xinfo.

xinfo - X server information printer

Vendor....................................... The X.Org Foundation
Version...................................... 11.0
Release number............................... 1.20.13

Resource ID base............................. 0x04000000
Resource ID mask............................. 0x001fffff
Motion buffer size........................... 256
Maximum request length....................... 16777212 bytes
Image byte order............................. little endian
Bitmap format bit order...................... least significant first
Bitmap format scanline unit.................. 32
Bitmap format scanline pad................... 32
Max keycode.................................. 255
Min keycode.................................. 8
Number of pixmap formats..................... 7
Number of screens............................ 1

Pixmap formats:
  * depth =  1, bits per pixel =  1, scanline pad = 32
  * depth =  4, bits per pixel =  8, scanline pad = 32
  * depth =  8, bits per pixel =  8, scanline pad = 32
  * depth = 15, bits per pixel = 16, scanline pad = 32
  * depth = 16, bits per pixel = 16, scanline pad = 32
  * depth = 24, bits per pixel = 32, scanline pad = 32
  * depth = 32, bits per pixel = 32, scanline pad = 32

Screens:
  Screen #0
    Root..................................... 0x0000079f
    Default colormap......................... 0x00000020
    White pixel.............................. 0x00ffffff
    Black pixel.............................. 0x00000000
    Current input mask....................... 0x00fa8033
      Key press.............................. yes
      Key release............................ yes
      Button press........................... no
      Button release......................... no
      Enter window........................... yes
      Leave window........................... yes
      Pointer motion......................... no
      Pointer motion hint.................... no
      Button 1 motion........................ no
      Button 2 motion........................ no
      Button 3 motion........................ no
      Button 4 motion........................ no
      Button 5 motion........................ no
      Button motion.......................... no
      Keymap state........................... no
      Exposure............................... yes
      Visibility change...................... no
      Structure notify....................... yes
      Resize redirect........................ no
      Substructure notify.................... yes
      Substructure redirect.................. yes
      Focus change........................... yes
      Property change........................ yes
      Colormap change........................ yes
      Owner grab button...................... no
    Size..................................... 1920x1080 pixels (508x285 mm)
    Installed maps........................... min = 1, max = 1
    Root visual id........................... 0x00000021
    Backing stores........................... when mapped
    Save unders.............................. no
    Root depth............................... 24
    Number of allowed depths................. 7
    Allowed depths:
      * depth = 24, number of visuals: 576
      * depth =  1, number of visuals: 0
      * depth =  4, number of visuals: 0
      * depth =  8, number of visuals: 0
      * depth = 15, number of visuals: 0
      * depth = 16, number of visuals: 0
      * depth = 32, number of visuals: 24

Font search paths:
  * /usr/share/fonts/misc
  * /usr/share/fonts/TTF
  * /usr/share/fonts/100dpi
  * /usr/share/fonts/75dpi
  * built-ins

Supported extensions: 28
  * BIG-REQUESTS............................. v2.0
  * Composite................................ v0.4
  * DAMAGE................................... v1.1
  * DOUBLE-BUFFER............................ v1.0
  * DPMS..................................... v1.2
  * DRI2..................................... v1.4
  * DRI3..................................... v1.2
  * GLX...................................... v1.4
  * Generic Event Extension.................. v1.0
  * MIT-SCREEN-SAVER......................... v1.1
  * MIT-SHM.................................. v1.2
  * Present.................................. v1.2
  * RANDR.................................... v1.6
  * RECORD................................... v1.13
  * RENDER................................... v0.11
  * SECURITY................................. v1.0
  * SHAPE.................................... v1.1
  * SYNC..................................... v3.1
  * X-Resource............................... v1.0
  * XC-MISC.................................. v1.1
  * XFIXES................................... v5.0
  * XFree86-DGA.............................. v2.0
  * XFree86-VidModeExtension................. v2.2
  * XINERAMA................................. v1.0
  * XInputExtension.......................... v2.3
  * XKEYBOARD................................ v1.0
  * XTEST.................................... v2.2
  * XVideo................................... v2.2

Unknown extension version

If an extension version shows up as unknown, then the extension is not supported by the current version of xinfo. Feel free to open a pull request to add support for said extension.

Licensing

This is free and unencumbered software released into the public domain. See the UNLICENSE file for more information.

Owner
Jean-Michel Gorius
Jean-Michel Gorius
C++ Library for pulling system and hardware information, without hitting the command line.

infoware C++ Library for pulling system and hardware information, without hitting the command line. Requirements No non-built-in ones by default. Some

The Phantom Derpstorm 287 Jun 27, 2022
led is a line-oriented text editor in command line

led is a line-oriented text editor in command line. This editor is similar to the standard program on unix systems - GNU ed. But i'm not going to make an exact clone of that program, it's just a pet project.

Artem Mironov 9 Jun 14, 2022
pbr2gltf2 is a command line tool for converting PBR images to a glTF 2.0 material.

pbr2gltf2 is a command line tool for converting PBR images to a glTF 2.0 material. The tool is detecting depending on the filename, which PBR information is stored. It swizzles the images and does reassign the channels to a glTF 2.0 image. The tool stores the images plus a minimal, valid glTF 2.0 file containing the required material, textures and images.

UX3D GmbH 22 Jan 11, 2022
Simple command line tool that processes image files using the FidelityFX Super Resolution (FSR) or Contrast Adaptive Sharpening (CAS) shader systems.

Simple command line tool that processes image files using the FidelityFX Super Resolution (FSR) or Contrast Adaptive Sharpening (CAS) shader systems.

GPUOpen Effects 174 Jun 26, 2022
A command line tool for numerically computing Out-of-time-ordered correlations for N=4 supersymmetric Yang-Mills theory and Beta deformed N=4 SYM.

A command line tool to compute OTOC for N=4 supersymmetric Yang–Mills theory This is a command line tool to numerically compute Out-of-time-ordered co

Gaoli Chen 1 Oct 16, 2021
A command-line tool to extract dylib files from the dyld shared cache file.

DyldExtractor A command-line tool to extract dylib files from the dyld shared cache file. Starting with macOS 11, standalone binaries of system librar

Cyandev 8 Mar 12, 2022
Microsoft Visual TrueType(VTT) command line compile tool.

Project Microsoft Visual TrueType(VTT) is a professional-level tool for graphically instructing TrueType and OpenType fonts. For details on the tool v

Microsoft 34 May 19, 2022
A command-line tool to generate Linux manual pages from C source code.

mangen A command-line tool to generate Linux manual pages from C source code. Description mangen is, as said above, a program to generate Linux manual

null 2 Nov 15, 2021
brn is a command line tool similar to vimv.

brn is a command line tool similar to vimv. It can be used to easily mass-rename files in your preferred text editor (i.e. vim).

Nimai Patel 12 Feb 26, 2022
This command-line tool converts an FM broadcast signal into stereo sound with de-emphasis applied.

stereodemux This command-line tool converts an FM broadcast signal into stereo sound with de-emphasis applied. It expects 16-bit signed-integer MPX (F

Oona Räisänen 9 Jun 11, 2022
nicegraf-shaderc is a command-line tool that transforms HLSL code into shaders for various graphics APIs.

User Manual Table of Contents Introduction Project Status Obtaining the Source Code and Building Running Defining Techniques Generated Header File Pip

nicebyte 88 Jun 20, 2022
A simple to use, composable, command line parser for C++ 11 and beyond

Clara v1.1.5 !! This repository is unmaintained. Go here for a fork that is somewhat maintained. !! A simple to use, composable, command line parser f

Catch Org 651 Jun 15, 2022
A library for interactive command line interfaces in modern C++

cli A cross-platform header only C++14 library for interactive command line interfaces (Cisco style) Features Header only Cross-platform (linux and wi

Daniele Pallastrelli 803 Jul 2, 2022
CLI11 is a command line parser for C++11 and beyond that provides a rich feature set with a simple and intuitive interface.

CLI11: Command line parser for C++11 What's new • Documentation • API Reference CLI11 is a command line parser for C++11 and beyond that provides a ri

null 2.1k Jun 24, 2022
Lightweight C++ command line option parser

Release versions Note that master is generally a work in progress, and you probably want to use a tagged release version. Version 3 breaking changes I

null 3.1k Jun 25, 2022
A simple to use, composable, command line parser for C++ 11 and beyond

Lyra A simple to use, composing, header only, command line arguments parser for C++ 11 and beyond. Obtain License Standards Stats Tests License Distri

Build Frameworks Group 342 Jun 16, 2022
A single header C++ library for parsing command line arguments and options with minimal amount of code

Quick Arg Parser Tired of unwieldy tools like getopt or argp? Quick Arg Parser is a single header C++ library for parsing command line arguments

null 44 Feb 21, 2022
CLIp is a clipboard emulator for a command line interface written in 100% standard C only. Pipe to it to copy, pipe from it to paste.

CLIp v2 About CLIp is a powerful yet easy to use and minimal clipboard manager for a command line environment, with no dependencies or bloat. Usage Sy

A.P. Jo. 12 Sep 18, 2021
null 76 Apr 18, 2022