Add support for `%{monitor-is-main}` interpolation variables to `list-monitors`, `list-windows`, `list-workspaces`
$ 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
How easy of a fix do you think this is? I can probably create a PR myself
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?
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
Implemented in 0.20.0-Beta