Skip to content

aos display

Attached monitors

3 commands. Run aos display --help for the same list from the binary, or see every group.

Attached monitors. list prints each monitor with its geometry and which one is primary, active (has the pointer) and focused (has the frontmost window). active and focused print just the id, for scripts that pass it to --monitor. Monitor numbers can change when displays are plugged in or out.

Print the ID of the monitor the pointer is on

needs a display

Terminal window
aos display active
Terminal window
aos capture screenshot --monitor=$(aos display active)

Print the ID of the monitor holding the frontmost window

needs a display

Terminal window
aos display focused
Terminal window
aos window move Chrome --monitor=$(aos display focused)

List attached monitors with geometry and focus state

needs a display alias: aos monitors

Terminal window
aos display list
Terminal window
aos display list