Amethyst icon indicating copy to clipboard operation
Amethyst copied to clipboard

Float little arc windows?

Open ytubs opened this issue 1 year ago • 11 comments

Is your feature request related to a problem? Please describe. Feature Request

Describe the solution you'd like Possibly it is not possible without a change in Arc's application packaging/bundling, but I'd like to be able to float only "Little arc" windows, with floating the browser's regular/main windows

ytubs avatar Jun 04 '23 06:06 ytubs

it would be nice to have a way to use the identifier (littleBrowserWindow-*) as a filter, and not just the window title

image

mpeterson avatar Aug 03 '23 14:08 mpeterson

This is something I'm looking for as well. I like the 'Little Arc' feature, but it pushes my windows all over the place. Perhaps we could extend on the work of #981 #1166? (I'm not very proficient in Swift though)

rutger1140 avatar Oct 26 '23 07:10 rutger1140

There does seem to be some window title prefix, but I'm not sure how to target it with regex. I've tried:

/^(?!Little Arc).*/ and /^(Little Arc).*/ while my floating is set to 'Automatically float all applications except those listed.'. Without success.

Scherm­afbeelding 2023-10-26 om 09 37 06

rutger1140 avatar Oct 26 '23 07:10 rutger1140

@rutger1140 Despite of what is shown on the dock, the actual title of the window does not contain Little Arc on it, so matching with regex won't work.

diegoquinteiro avatar Feb 03 '24 21:02 diegoquinteiro

+1 @mpeterson, that'd be a great feature

diegoquinteiro avatar Feb 03 '24 21:02 diegoquinteiro

You can check to see if Amethyst knows about a title with the cli debug tools.

/Applications/Amethyst.app/Contents/MacOS/Amethyst debug windows

But adding other sources of floating logic seems reasonable, generally speaking, but the UI gets more complicated.

ianyh avatar Feb 04 '24 03:02 ianyh

You can check to see if Amethyst knows about a title with the cli debug tools.

Arc (pid 17496)
        Title:
        Frame: (1130.0, 719.0, 916.0, 515.0)
        id: 18215
        ScreenID: 37D8832A-2D66-02CA-B9F7-8F30A301B230
        Screen Frame: (0.0, 0.0, 2056.0, 1329.0)
        isActive: true
        isOnScreen: true
        isFocused: false
        shouldBeManaged: false
        shouldFloat: false

        Title: heyvito/dotfiles: 💻 @heyvito's dotfiles
        Frame: (130.0, 64.0, 1028.0, 1160.0)
        id: 18294
        ScreenID: 37D8832A-2D66-02CA-B9F7-8F30A301B230
        Screen Frame: (0.0, 0.0, 2056.0, 1329.0)
        isActive: true
        isOnScreen: true
        isFocused: false
        shouldBeManaged: true
        shouldFloat: false

The second window is actually Little Arc.

What if we could control floating windows by leveraging prefixes such as identifier:, regex:, etc? Or even just allow selection with a dropdown with options like Identifier, Window Title, and Bundle ID, defaulting to the last one.

@ianyh I could give this a try and open a PR if you think that would add any value to your project! :)

heyvito avatar Feb 08 '24 00:02 heyvito

I think expanding what you can do float matching on is reasonable, as long as it can be done in a backwards compatible way. I don't think I personally have the cycles for that, but if you want to give it a go I can try reviewing it.

ianyh avatar Feb 08 '24 02:02 ianyh

Aight! I'll try to come up with some UIs later today, and I'll post here before actually trying to implement it. So we can discuss any improvements!

heyvito avatar Feb 08 '24 15:02 heyvito

Any updates on this issue?

limonkufu avatar Apr 26 '24 14:04 limonkufu