pawelgrzybek / div

Div — a simple Alfred window manager
https://pawelgrzybek.com/div-simple-alfred-windows-manager/
218 stars 19 forks source link

Possible to position/size specific app windows? #27

Closed Broham closed 1 year ago

Broham commented 1 year ago

Hello, loving div so far - great work! I was wondering if it's possible to have windows for specific applications moved/resized without selecting them first? Basically I have about 4 apps that I like to arrange in the same way:

Do you know if it's possible to do something like this? Thanks for any info!

pawelgrzybek commented 1 year ago

Hi @Broham

I absolutely understand your use case. Unfortunately div by itself works only in relation to the active app. So unfortunately you wont be able to do it using div.

You can have a look into the source code of div (it is pretty self explanatory piece of apple script) and come up with a little script that does what you need it to do. Then you can hook it into the Alfred trigger.

https://github.com/pawelgrzybek/div/blob/master/div.scpt

Hopefully that gave you some ideas. Have a fab day!

Broham commented 1 year ago

Sounds like a fun little project! I'll give that a shot - thanks!

On Sat, Mar 18, 2023 at 4:18 AM Pawel Grzybek @.***> wrote:

Hi @Broham https://github.com/Broham

I absolutely understand your use case. Unfortunately div by itself works only in relation to the active app. So unfortunately you wont be able to do it using div.

You can have a look into the source code of div (it is pretty self explanatory piece of apple script) and come up with a little script that does what you need it to do. Then you can hook it into the Alfred trigger.

https://github.com/pawelgrzybek/div/blob/master/div.scpt

Hopefully that gave you some ideas. Have a fab day!

— Reply to this email directly, view it on GitHub https://github.com/pawelgrzybek/div/issues/27#issuecomment-1474817245, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG3WDRWEIVI3J2NA7X7ORDW4WKXVANCNFSM6AAAAAAV6ZFDZE . You are receiving this because you were mentioned.Message ID: @.***>