Skip to content
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

Unable to focus space or display with SIP enabled #548

Closed
windowsrefund opened this issue May 30, 2020 · 6 comments
Closed

Unable to focus space or display with SIP enabled #548

windowsrefund opened this issue May 30, 2020 · 6 comments
Labels
help wanted Community help appreciated question Request for information or help, not an issue

Comments

@windowsrefund
Copy link

windowsrefund commented May 30, 2020

Running 10.15 (Catalina) and I can't disable SIP as I don't have the password and never will. Please forgive me and trust I hate this more than you :)

However, I'm still hoping I should be able to benefit from this tiler regardless. I can focus windows in all directions but am seeing something odd when I attempt to change focus between my 2 displays

From a shell on display 1, I can run yabai -m display --focus next and focus is changed to display 2. Nice!

However, the following skdrc mappings produce no similar result:

alt - 1 : yabai -m display --focus prev
alt - 2 : yabai -m display --focus next

I am also unable to change focus between spaces (I have 2 which I'll show below) either from running yaibai directly in a shell or via skhd.

I did read about the SIP-related limitations but the FAQ says "focus/create/destroy space without animation". What exactly is meant by "without animation"? I just want to change focus and am not even sure what animation I would or would not expect to be involved. Should I be able to change focus of spaces with SIP enabled?

Here's the output of the query which shows I have 2 displays and 2 spaces:

yabai -m query --spaces
[{
	"id":1,
	"label":"",
	"index":1,
	"display":1,
	"windows":[3398, 3084],
	"type":"bsp",
	"visible":1,
	"focused":1,
	"native-fullscreen":0,
	"first-window":3398,
	"last-window":3084
},{
	"id":6,
	"label":"",
	"index":2,
	"display":2,
	"windows":[3341],
	"type":"bsp",
	"visible":1,
	"focused":0,
	"native-fullscreen":0,
	"first-window":3341,
	"last-window":3341
}]
yabai -m query --displays
[{
	"id":418843528,
	"uuid":"0009F357-004A-6C76-98A7-AD39161D08FD",
	"index":1,
	"spaces":[1],
	"frame":{
		"x":0.0000,
		"y":0.0000,
		"w":1920.0000,
		"h":1080.0000
	}
},{
	"id":418843527,
	"uuid":"2F87FBC0-5196-2031-56EF-B5FF21C11881",
	"index":2,
	"spaces":[2],
	"frame":{
		"x":1920.0000,
		"y":0.0000,
		"w":1920.0000,
		"h":1080.0000
	}
}]

Thanks for any feedback

@koekeishiya
Copy link
Owner

koekeishiya commented May 30, 2020

Focusing spaces require SIP to be disabled. If you cannot do that the only way is to use the built-in shortcuts that can be set in System Preferences -> Keyboard -> Shortcuts -> Mission Control.

Focusing display should work just fine (and does so for me).
Try to open two terminal windows; one for each display.

On the first display, type: yabai -m display --focus next, and the second terminal window should gain focus.

On the second display, type: yabai -m display --focus prev, and the first terminal window should gain focus.

Assuming that works fine; your issue is related to your skhd setup, maybe the bind is not invoked correctly for whatever reason.

@koekeishiya koekeishiya added help wanted Community help appreciated question Request for information or help, not an issue labels May 30, 2020
@windowsrefund
Copy link
Author

OK, thank you so much. I'm new to (having to use) OSX and didn't even know about Mission Control. I'll explore...

@windowsrefund
Copy link
Author

Thanks again for the clarification. I'm very close to having a usable setup now and am only struggling with creating a clear visual way to know which window is active on a given monitor.

It seems as if there is no way to manage borders? I've seen references to active_window_border_color and normal_window_border_color but am assuming support has been dropped. Is there another approach that's possible with SIP enabled?

@koekeishiya
Copy link
Owner

See #487 for discussion regarding active window indicator.

@Nebuchadrezzar
Copy link

Nebuchadrezzar commented Oct 12, 2022

Any chance the documentation can be updated with respect to this topic? Just as the OP, I too read the FAQ line "focus/create/destroy space without animation" to mean yabai can focus/create/destroy a space WITH animation if SIP is turned on. Removing the clause "with animation" would clarity this point.

@koekeishiya
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Community help appreciated question Request for information or help, not an issue
Projects
None yet
Development

No branches or pull requests

3 participants