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.
Commands
Section titled “Commands”aos display active
Section titled “aos display active”Print the ID of the monitor the pointer is on
needs a display
aos display activeaos capture screenshot --monitor=$(aos display active)aos display focused
Section titled “aos display focused”Print the ID of the monitor holding the frontmost window
needs a display
aos display focusedaos window move Chrome --monitor=$(aos display focused)aos display list
Section titled “aos display list”List attached monitors with geometry and focus state
needs a display alias: aos monitors
aos display listaos display list