Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add layout type to list-windows output #846

Open
jcelaya775 opened this issue Dec 11, 2024 · 1 comment
Open

Add layout type to list-windows output #846

jcelaya775 opened this issue Dec 11, 2024 · 1 comment
Labels
feature-proposal A well defined feature proposal

Comments

@jcelaya775
Copy link

jcelaya775 commented Dec 11, 2024

Having more information about windows helps make scripting/automation easier. For instance, I would like to write a script to move a window to a specific dfs-index, but would need both the dfs-index (#667) of the currently focused window as well as its layout type. So, adding the layout type (v_tiles, h_tiles, h_accordian, or v_accordian) and dfs-index to the list-windows output would help, thanks!

@jcelaya775 jcelaya775 added the feature-proposal A well defined feature proposal label Dec 11, 2024
@CheariX
Copy link

CheariX commented Dec 12, 2024

I think the list-windows subcommand could be enriched with lots of information.
If compared to yabai, aerospace offers only very limited information.
For example, yabai -m query --windows offers information like:

  • has-focus: without that, I need to query the CLI two times to get all windows AND the focused window
  • is-minimized: would be nice to ignore minimized windows in some scripts
  • is-fullscreen: similarly to above
  • frame.x and frame.y as XY coordinates, which is similar to dfs-index

IMHO, it would be nice to get all these information when using aerospace list-windows --json.
If the output is json, then the --format could be omitted to show all fields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-proposal A well defined feature proposal
Projects
None yet
Development

No branches or pull requests

2 participants