AeroSpace icon indicating copy to clipboard operation
AeroSpace copied to clipboard

Add support for `%{monitor-is-main}` interpolation variables to `list-monitors`, `list-windows`, `list-workspaces`

Open nikitabobko opened this issue 7 months ago • 3 comments

$ aerospace list-monitors --format '%{monitor-name} %{monitor-is-main}' --json
[
  {
    "monitor-is-main" : false,
    "monitor-name" : "Built-in Retina Display"
  },
  {
    "monitor-is-main" : true,
    "monitor-name" : "DELL U2723QE"
  }
]

$ aerospace list-monitors --format '%{monitor-name}%{right-padding} | %{monitor-is-main}'
Built-in Retina Display | false
DELL U2723QE            | true

Discussions

  • https://github.com/nikitabobko/AeroSpace/discussions/1655

nikitabobko avatar Aug 26 '25 13:08 nikitabobko

How easy of a fix do you think this is? I can probably create a PR myself

haxybaxy avatar Aug 27 '25 09:08 haxybaxy

How easy of a fix do you think this is? I can probably create a PR myself

I just did it :D Would this be accepted on its own, or would you need list-windows and list-workspaces to be tackled as well? if so, is the expected behavior for adding it to those commands being able to query windows or workspaces just on the active monitor, kind of like --focused?

haxybaxy avatar Aug 27 '25 10:08 haxybaxy

Thank you for adding the fix yourself, what is left for this to be included in the next release? I can add it myself if you are busy

haxybaxy avatar Sep 06 '25 14:09 haxybaxy

Implemented in 0.20.0-Beta

nikitabobko avatar Nov 24 '25 22:11 nikitabobko