-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
Wrong monitors order compared to other tools like sketchybar #336
Comments
What is the order of the remaining monitors? |
Unfortunately, I don't know the order of the remaining monitors. I only have 2 monitors (1 external) 🙂 |
Easy snippet to reproduce the issue, put this somewhere in your for monitorID in $(aerospace list-monitors | awk '{print $1}'); do
sketchybar --add item find.mon.$monitorID left \
--set find.mon.$monitorID \
icon="$monitorID" \
display=$monitorID
done |
Thanks for the snippet! Here's the order from my first arrangement:
In the second arrangment it's ordered another way:
|
Just FYI, wrote a small bash script to fix the order for sketchybar: mainMonitor="LG HDR WQHD+"
monitors=$(aerospace list-monitors)
monitorsSorted=("$(grep "$mainMonitor" <<< "$monitors")")
monitorsSorted+=("$(grep -v "$mainMonitor" <<< "$monitors")")
printf '%s\n' "${monitorsSorted[@]}" | sed "$1,1!d" | awk '{print $1}' |
@nikitabobko with the most recent beta version v0.13.1-beta the monitor list is broken (at least for me).
Should I open a separate issue for this? |
@tobiasgiese Thanks for reporting! Should be fixed in 0.13.2 |
AeroSpace is using a custom order for the monitors.
AeroSpace/Sources/AppBundle/model/Monitor.swift
Lines 82 to 84 in b0ed972
Other tools like Sketchybar are using a different order. The first monitor is always the primary monitor.
AeroSpaces first monitor is always the most left monitor, regardless if it's the primary monitor or not.
This makes it pretty hard to use
aerospace list-workspaces
andaerospace --add event [...] display=$monitorID
for instance.In my case I have the Macbook on the left side of the monitor -- where my external monitor is primary.
Running the following command will add all workspaces to the wrong monitor:
Snippet to reproduce
IMO it is worth the effort to give the users the ability to adjust the order. Something like an additional command parameter to select if it will be ordered align to the X and Y axis or if we want to have the primary monitor always as the first one.
The text was updated successfully, but these errors were encountered: