API/Command to Query Current Split Orientation #1739
-
| BackgroundComing from i3, one of the features I miss in AeroSpace is the visual indication of the next split direction. In i3, the window border highlights (right border for horizontal split, bottom border for vertical split) provide immediate visual feedback about where the next window will be placed. Current LimitationAeroSpace currently provides split commands ( 
 Proposed SolutionAdd a command or API endpoint to query the current split orientation, for example: Option 1: Dedicated query command aerospace query split-orientation
# Output: horizontal | verticalOption 2: Include in tree query (Issue #16) aerospace list-windows --json
# Include "split_orientation" field in outputOption 3: Extend existing commands aerospace list-windows --format "%{split-orientation}"Use Cases
 Related Issues
 With #230 implemented and this feature, it would be possible to create reactive visual indicators that update automatically when focus or split orientation changes. Proposed ImplementationSince this likely depends on or relates to Issue #16 (tree query command), this could be: 
 Alternative Workarounds ConsideredCurrently, the only workaround is to manually track split state by adding notifications to each keybinding: alt-h = ['split horizontal', 'exec-and-forget osascript -e "display notification \"Horizontal\" with title \"Split Mode\""']This approach: 
 SummaryAn API to query split orientation would enable users (especially those coming from i3) to build visual feedback systems and create a more intuitive tiling experience. This feature would complement the existing split commands and align well with the planned tree query functionality. | 
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
| Does #1161 do what you need? The work has been done, it's just not in a release yet. | 
Beta Was this translation helpful? Give feedback.
-
| @alewis001 Thanks. To my understanding no, as it only will show the layout for the existing windows. What i suggest is somethin that can determine what will be the orientation of the next window that will be created (i.e. after running  | 
Beta Was this translation helpful? Give feedback.
-
| Created an issue #1772 | 
Beta Was this translation helpful? Give feedback.
Created an issue #1772