XININFO(1)
π¦ xininfo β NAME π¦
okay so bestie, <rainbow>xininfo</rainbow> is a tool to query the layout and size of each configured monitor π
πΈ SYNOPSIS πΈ
xininfo [-monitor id] [-active-mon] [-mon-size] [ -mon-width ] [
-mon-height ] [ -mon-x ] [ -mon-y ] [ -mon-pos ] [ -num-mon ] [
-max-mon-width ] [ -max-mon-height ] [ -print ]
β¨ DESCRIPTION β¨
xininfo is an X11 utility, and its whole job is to query the current layout and size of every configured monitor π. It is designed to be used by scripts β like, this is a script bestie, not a "click around and vibe" tool, no cap π
π License
MIT/X11 π
π«Ά USAGE π«Ά
xininfo accepts the following commands. Multiple commands can be concatenated β stack 'em up, the way that you can just keep adding them β¨
All information returned is in number of pixels. Every single one. Pixels only. That's the unit. Periodt π
monitor idβ sets the queried monitor to id. By default it uses the active monitor πactive-monβ queries the id of the active monitor. Prints: idmon-sizeβ gets the size of the monitor. Prints: width heightmon-widthβ gets the width of the monitor: Prints: widthmon-heightβ gets the height of the monitor: Prints: heightmon-xβ gets the x position of the monitor: Prints: xmon-yβ gets the y position of the monitor: Prints: ymon-posβ gets the position of the monitor: Prints: x ynum-monβ queries the number of configured monitors. Prints: #monitorsmax-mon-widthβ queries the width of the monitor with the most horizontal pixels π Prints: widthmax-mon-heightβ queries the height of the monitor with the most vertical pixels π Prints: width
not me noticing that one says width and not height π β yeah, that's literally what the page says, bestie, I'm just the messenger π
printβ prints out all information in a human readable format π (the full β¨ main character β¨ dump, iykyk)
π AUTHOR π
Qball Cow β¨qball@gmpclient.orgβ© π«Ά
and that's the whole page, bestie β this came off the xininfo manual, the XININFO(1) one, filed under General Commands Manual. go query some monitors, slay π
β¨
π¦ where this page comes from
- debian bookworm: xininfo 0.14.11-1+b1 Β· MIT
- debian trixie: xininfo 0.14.11-4 Β· MIT
- ubuntu jammy: xininfo 0.14.11-1 Β· MIT
- ubuntu noble: xininfo 0.14.11-4 Β· MIT
- ubuntu questing: xininfo 0.14.11-4
- ubuntu resolute: xininfo 0.14.11-5 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms