XININFO 1 xininfo
xininfo - a tool to query the layout and size of each configured monitor.
xininfo [ -monitor id] [ -active-mon] [ -mon-size] [ -mon-width ] [ -max-mon-width ] [ -mon-height ] [ -max-mon-height ] [ -mon-x ] [ -mon-y ] [ -mon-pos ] [ -num-mon ] [ -dpms ] [ -dpms-state ] [ -screensaver ] [ -screensaver-state ] [ -print ] [ -name ] [ -modes ] [ -h ]
xininfo is an X11 utility to query the current layout and size of each configured monitor. It is designed to be used by scripts.
xininfo accepts the following commands. Multiple commands can be concatenated. All information returned is in number of pixels.
Set queried monitor to id. By default it uses the active monitor.
Query the id of the active monitor.
Get the size of the monitor.
Prints: width height
Get the width of the monitor:
Query width of the monitor with the most horizontal pixels
Get the height of the monitor:
Query height of the monitor with the most vertical pixels
Get the x position of the monitor:
Get the y position of the monitor:
Get the position of the monitor:
Prints: x y
Queries the number of configured monitors.
Prints the current dpms state human readable.
Prints the current dpms state easy parsable.
Prints the current screensaver state human readable.
Prints the current screensaver state easy parsable.
Print out all information in a human readable format.
Print the xrandr name of the monitor.
Print the supported modes (resolution and refresh rate) for the selected monitor.
Show the manpage of xininfo
Qball Cow firstname.lastname@example.org