Different Monitor layout presets #765
Replies: 3 comments 1 reply
-
I'm interested in this as well. Most of the time I have my macbook + 1 external monitor but occasionally I unplug the monitor, at which point the aerospace layout config is no longer appropriate. I have a 4k external monitor, I don't have apps maximised on that screen and I've set gaps for the "main" monitor (the 4k monitor is the "main" one via macos display settings when it's attached). Unfortunately, when the 4k monitor is disconnected the gaps are applied on the macbook screen as that becomes "main" which ideally wouldn't happen, instead I'd probably opt for all/most windows to be maximised. |
Beta Was this translation helpful? Give feedback.
-
I think I've now just solved my issue, maybe this will help you @Yeraze I reworked my settings to... [gaps]
inner.horizontal = 5
inner.vertical = 5
outer.left = [{monitor."PL3272UH" = 550}, 0]
outer.bottom = [{monitor."PL3272UH" = 50}, 0]
outer.top = [{monitor."PL3272UH" = 50}, 0]
outer.right = [{monitor."PL3272UH" = 550}, 0]
[workspace-to-monitor-force-assignment]
Alt = ['built-in.*', 'main']
AltTesting = ['built-in.*', 'main']
OBS = ['built-in.*', 'main'] I used to set the gaps based on HTH |
Beta Was this translation helpful? Give feedback.
-
The comment in the default config might help, in case I'm misunderstanding what you want to do:
```
# Gaps between windows (inner-*) and between monitor edges (outer-*).
# Possible values:
# - Constant: gaps.outer.top = 8
# - Per monitor: gaps.outer.top = [{ monitor.main = 16 }, {monitor."some-pattern" = 32 }, 24]
# In this example, 24 is a default value when there is nomatch.
# Monitor pattern is the same as for 'workspace-to-monitor-force-assignment'.
# See: https://nikitabobko.github.io/AeroSpace/guide#assign-workspaces-to-monitors
```
I think it sounds like you want something like: `gaps.outer.top = [{ monitor."built-in.*" = 0 }, 40]`
As mentioned in the comment above, the last param in the array is the default, which I think in this case you want 40. You then set the override for the specific monitor. You could use `aerospace list-monitors` ("https://nikitabobko.github.io/AeroSpace/commands#list-monitors") to get their full names/ids as aerospace sees them instead of using a pattern in the `monitor.***` format. Obviously my example is just setting `gaps.outer.top`, you would need to set the other edges as desired.
HTH
…On Sun, 8 Dec 2024 at 01:31, zak ***@***.***> wrote:
I love the syntax for [{monitor."..." = }, 0], I never would have figure
it out. Do you know a way to adjust the gap size s.t. it applies a certain
top gap to any monitor, not just an ID? i have a problem where my apps are
overlapping with sketchybar on my monitors only and it creates an unsightly
gap on my built in display when I add a 40 gap to fix it.
Essentially (if i wasn't clear) - I would like to add 40 gap to any
detected monitor but 0 gap to my built in. Is there a way to add monitor."SOMETHING
HERE" to accomplish this?
—
Reply to this email directly, view it on GitHub
<#765 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA2SGTWPUKZDFRRTHS47RD32EOOPJAVCNFSM6AAAAABSQ7FHI6VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNBZGY4DMNA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I have 3 primary monitor layouts I use on my macbook:
Is there a way with Aerospace to have 3 defined configurations for these layouts, with application preset positions? (e.g. Which monitor and space contains Outlook, Kitty, Teams, Chrome, etc)
Beta Was this translation helpful? Give feedback.
All reactions