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

Komorebi stack status #154

Open
aspauldingcode opened this issue Oct 27, 2024 · 1 comment
Open

Komorebi stack status #154

aspauldingcode opened this issue Oct 27, 2024 · 1 comment

Comments

@aspauldingcode
Copy link
Owner

Windows could be checked if in stacked or tiled by the true/false output of:

$fmi=komorebic query focused-monitor-index;$fwi=komorebic query focused-workspace-index;$fci=komorebic query focused-container-index;komorebic state | jq '.monitors.elements.[$fmi].workspaces.elements.[$fwi].containers.elements.[$fci].windows.elements | length > 1' --argjson fmi $fmi --argjson fwi $fwi --argjson fci $fci

Komorebi has a concept of containers. Every workspace can have a set of containers. Each container might hold one or more windows. If it has more than one then it is a stack!

@aspauldingcode
Copy link
Owner Author

I've successfully got komorebi to recigonize stacked windows vs zoom-fullscreen vs tiled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant