-
-
Notifications
You must be signed in to change notification settings - Fork 648
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
Can yabai move a window to the display that is on the left? #526
Comments
If the provided display selectors are not enough you can use the script mentioned in this issue: #225 |
#225 is implemented on master and allows the usage of cardinal directions to target a display. In your case |
Thank you! I assume the correct way to do what I'm trying will be this?
Looking at previous releases, it seems like you prepare one about every two weeks. Will #225 and #459 be included in the next release? |
As far as focusing goes, yeah, that does seem correct to me. They'll be in the next release, yeah. If you don't mind running from the master branch, it is usually very stable, except for when I decide to make breaking changes, but you can just look at the changelog before updating to see what changes have been made. I don't have a set schedule for when a new release is made. It mostly depends on what changes have been made and if I think some of them are important enough to get out before any additional major changes. I suppose it also depends on how much I think I will be working on the project in the upcoming days/weeks. If there has been a reasonable amount of changes and I don't think I'll be doing too much in the near future, I usually do a release. |
I've updated to the master branch --- this is a huge improvement! I'm still running into an issue with moving windows across displays and am wondering if you can think of a solution to this. I'm using this skhd configuration:
The windows move as expected within a display and also move over to the nearest display when expected. However, when a window moves to the next display, it doesn't necessarily end up on the nearest side of that new display. Can you think of a way this might be possible? |
@koekeishiya Can you think of a solution to this? |
You can focus the new display first and then set the the insertion point by using Alternatively if you don't mind some jumping around, the absolute simplest way is to simply move the window, follow focus, and then just |
Thanks! Would last work here? When moving a window to the west screen, it should take the east edge of that screen. When moving to the east screen, it should take the west edge of that screen. |
For _east_ you can use _first_ instead of _last_, but same strategy as mentioned previously.
…Sent from my iPhone
On 24 Jun 2020, at 16:51, Danijar Hafner <[email protected]> wrote:
Thanks! Would last work here? When moving a window to the west screen, it should take the east edge of that screen. When moving to the east screen, it should take the west edge of that screen.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#526 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABPDZV6WT4GNCRX5SHDEATTRYIHGVANCNFSM4NDOPLEQ>.
|
I came here trying to find a way to rotate the focused window between displays AND keeping the focus. End up doing: WIN_ID=$(yabai -m query --windows --window | jq '.id') && yabai -m window --display recent && yabai -m window --focus $WIN_ID Maybe someone finds it useful. |
Here is how I got it working, it could probably be simplified but I couldn't fuss with it any longer, using some of koekeishiya and vizcay's ideas.
|
On Linux, I used i3 which has a nice way to support multiple displays. The key combination Super+Shift+H moves a window to the left in the tree. Usually, this would just swap the window with one that is further left on the same display. But if the window is already left most on the display, it moves the window over to the next display on the left.
I would like to replicate this behavior with yabai because I've found myself not use my displays on the side as much when I manually have to think about which workspace to send a window to.
The text was updated successfully, but these errors were encountered: