XININFO(1)

πŸ“¦
version 0.14.11 Β· 2 versions
  • 0.14.11 Β· debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute (latest)
  • 0.14.11 Β· ubuntu stonking
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute

πŸ¦‹ 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: id
  • mon-size β€” gets the size of the monitor. Prints: width height
  • mon-width β€” gets the width of the monitor: Prints: width
  • mon-height β€” gets the height of the monitor: Prints: height
  • mon-x β€” gets the x position of the monitor: Prints: x
  • mon-y β€” gets the y position of the monitor: Prints: y
  • mon-pos β€” gets the position of the monitor: Prints: x y
  • num-mon β€” queries the number of configured monitors. Prints: #monitors
  • max-mon-width β€” queries the width of the monitor with the most horizontal pixels 🌈 Prints: width
  • max-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