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

Add ability to move between spaces while in Mission Control with "fast focus desktop" command. #542

Closed
SxC97 opened this issue May 28, 2020 · 4 comments
Labels
question Request for information or help, not an issue

Comments

@SxC97
Copy link

SxC97 commented May 28, 2020

I have ctrl + left|right set to the fast focus desktop command, unfortunately this doesn't work while in Mission Control.

Is it possible to add this feature? Perhaps just allow fast focus desktop to function as regular move to left|right space command while in Mission Control?

@koekeishiya
Copy link
Owner

Unlikely to happen, but if/when I get to fixing #181 this could be solved with a fallback definition in your skhd config or w/e hotkey mechansim you use.

@koekeishiya koekeishiya added the question Request for information or help, not an issue label May 29, 2020
@SxC97
Copy link
Author

SxC97 commented May 31, 2020

Would it be possible to use the mission_control_enter and mission_control_exit actions in Yabai to temporarily enable an skhd mode in which ctrl + left|right are remapped?

@koekeishiya
Copy link
Owner

koekeishiya commented May 31, 2020

So apparently I'm just stupid. The particular case you are looking for has already been solved. If you try to focus a space using space --focus while inside mission-control, the command will fail with a non-zero exit code. You can set the space switching shortcuts in System Preferences > Keyboard > Mission Control > left/right to some combination you don't use; eg: ctrl+cmd+alt+left|right

Then in your skhd config:

ctrl - left : yabai -m space --focus prev || skhd -k "ctrl + cmd + alt - left"
ctrl - right : yabai -m space --focus next || skhd -k "ctrl + cmd + alt - right"

@SxC97
Copy link
Author

SxC97 commented May 31, 2020

This worked perfectly, thank you!

@SxC97 SxC97 closed this as completed May 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Request for information or help, not an issue
Projects
None yet
Development

No branches or pull requests

2 participants