nikitabobko / AeroSpace

AeroSpace is an i3-like tiling window manager for macOS
https://nikitabobko.github.io/AeroSpace/guide
MIT License
6.42k stars 103 forks source link

How to Configure Bob's Window to Float Instead of Opening in a New Workspace #410

Open yaotutu opened 2 months ago

yaotutu commented 2 months ago

Description

i am trying to configuer the window management for an application named "Bob" using Aerospace. My foal is to make the Bob applicaion window float whenecer it appears,instead of having it open in a new workspace.

Here is the current configuarion i am useing :

[[on-window-detected]]
if.app-id = 'com.hezongyidev.Bob'
check-further-callbacks = true
run = 'layout floating'

Problem:

Despite this configuration, Bob’s window still opens in a new workspace rather than floating. I’ve confirmed the app ID is correct using the following command:


mdls -name kMDItemCFBundleIdentifier -r /Applications/bob.app

This returns: com.hezongyidev.Bob

Hypothesis:

I suspect the issue may be related to how Bob operates. The application primarily uses floating windows to display information, and it’s possible that these floating windows are invoked through a system-level API that doesn’t directly associate them with Bob’s main application process. This might explain why Aerospace isn’t handling them as expected. If the floating window is technically not part of the bob application (from the perspective of the window manager), it might not be applying the expected layout.

image
tobiasgiese commented 2 months ago

Have you tried to get the identifier via aerospace list-apps?

yaotutu commented 2 months ago

@tobiasgiese

Have you tried to get the identifier via aerospace list-apps?

I have tried using the aerospace list-apps command, but unfortunately, it does not list the Bob application. It seems that Bob’s window or application might not be recognized or registered by Aerospace in the way other applications are.

nikitabobko commented 2 months ago

Please attach aerospace debug-windows output

yaotutu commented 1 month ago

Bob’s app is a floating window. When the focus disappears, the window also disappears. Therefore, this command does not provide any useful information.

martinengelke commented 1 month ago

I can underline the issue with an app called SideNote, which is normally following spaces on macOS to appear right at the side of the screen like the Notification Center. Now when I invoke it, it just prompts me to a certain Workspace where it then opens. The fundamental idea of SideNotes of following my spaces is unfortunately gone :(

Maybe there is some way to unleash an app from a workspace and make it visible for all workspaces?

Edit: could work with:

On activate: Bring to current workspace