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

Focus window full screen switching problem #512

Closed
nibocn opened this issue May 7, 2020 · 3 comments
Closed

Focus window full screen switching problem #512

nibocn opened this issue May 7, 2020 · 3 comments
Labels
help wanted Community help appreciated question Request for information or help, not an issue

Comments

@nibocn
Copy link

nibocn commented May 7, 2020

There are two windows in bsp mode. When the left window is full-screen (zoom-parent), you can switch to the right window through the focus window, but when the right window is full-screen (zoom-parent), you cannot switch to the left window.

There is no problem in yabai v2.4.3 and below.

macOS version: 10.15.4 (19E287)

yabai version: yabai-v3.0.0

yabai scripting-addition version: v1.0.9

Screen recording file:

https://drive.google.com/open?id=1TZhkwvpbfIYexMjL_RcU1i6dxJ1vD8oD

yabairc config:

#!/usr/bin/env sh

# global settings
yabai -m config mouse_follows_focus          off
yabai -m config focus_follows_mouse          off
yabai -m config window_placement             second_child
yabai -m config window_topmost               off
yabai -m config window_opacity               on
yabai -m config window_opacity_duration      0.0
yabai -m config window_shadow                on
yabai -m config insert_feedback_color        0xffd75f5f
yabai -m config active_window_opacity        1.0
yabai -m config normal_window_opacity        0.95
yabai -m config split_ratio                  0.50
yabai -m config auto_balance                 off
yabai -m config mouse_modifier               fn
yabai -m config mouse_action1                move
yabai -m config mouse_action2                resize

# general space settings
yabai -m config layout                       bsp
yabai -m config top_padding                  4
yabai -m config bottom_padding               4
yabai -m config left_padding                 4
yabai -m config right_padding                4
yabai -m config window_gap                   4

# float apps
yabai -m rule --add app="^System Preferences$" manage=off
yabai -m rule --add app="^系统偏好设置$" manage=off
yabai -m rule --add app="^WeChat$" manage=off
yabai -m rule --add app="^微信$" manage=off
yabai -m rule --add app="^QQ$" manage=off
yabai -m rule --add app="^Activity Monitor$" manage=off
yabai -m rule --add app="^活动监视器$" manage=off
yabai -m rule --add app="^EuDic$" manage=off
yabai -m rule --add app="^欧路词典$" manage=off
yabai -m rule --add app="^Surge$" manage=off
yabai -m rule --add app="^Surge 3$" manage=off
yabai -m rule --add app="^Surge$" manage=off

yabai -m rule --add app="^JetBrains Toolbox$" manage=off
jetbrain_apps="^(IntelliJ IDEA|WebStorm|PyCharm|CLion|GoLand)$"
yabai -m rule --add app="${jetbrain_apps}" title="^(Preferences|Project Structure|Plugins|Run/Debug Configurations|Edit configuration settings)$" manage=off

...

skhdrc config:

#
# Modes

# yabai v3.0.0 版本已不支持修改 window border
# :: default : yabai -m config active_window_border_color 0xff9c5054
# :: resize : yabai -m config active_window_border_color 0x99ff0000
# :: warp : yabai -m config active_window_border_color 0x990000ff

:: default : osascript -e 'display notification "Normal mode" with title "skhd"'
:: resize : osascript -e 'display notification "Resize mode" with title "skhd"'
:: warp : osascript -e 'display notification "Warp mode" with title "skhd"'

#
# Switches
#
alt - r ; resize
alt - w ; warp

resize < alt - w; warp
warp < alt - r; resize

resize, warp < escape; default

# focus window
warp < h : yabai -m window --focus west
warp < j : yabai -m window --focus south
warp < k : yabai -m window --focus north
warp < l : yabai -m window --focus east

alt - h : yabai -m window --focus west
alt - j : yabai -m window --focus south
alt - k : yabai -m window --focus north
alt - l : yabai -m window --focus east


# swap window
warp < shift + alt - h : yabai -m window --swap west
warp < shift + alt - j : yabai -m window --swap south
warp < shift + alt - k : yabai -m window --swap north
warp < shift + alt - l : yabai -m window --swap east

shift + alt - h : yabai -m window --swap west
shift + alt - j : yabai -m window --swap south
shift + alt - k : yabai -m window --swap north
shift + alt - l : yabai -m window --swap east


# move window
warp < ctrl + alt - h : yabai -m window --warp west
warp < ctrl + alt - j : yabai -m window --warp south
warp < ctrl + alt - k : yabai -m window --warp north
warp < ctrl + alt - l : yabai -m window --warp east

ctrl + alt - h : yabai -m window --warp west
ctrl + alt - j : yabai -m window --warp south
ctrl + alt - k : yabai -m window --warp north
ctrl + alt - l : yabai -m window --warp east

# toggle window parent zoom
ralt - return : yabai -m window --toggle zoom-parent

# toggle window fullscreen zoom
ralt - f : yabai -m window --toggle zoom-fullscreen

@koekeishiya
Copy link
Owner

Sideeffect of #301

Not sure I would call this a bug. I don't see a way to support this use case and not introduce the other problems.

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

nibocn commented May 8, 2020

OK, thank you, but it feels a little different from v2.4.3 and below

@koekeishiya
Copy link
Owner

This will be fixed. Closing this issue in favour of #562

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

2 participants