Open I-Want-ToBelieve opened 2 years ago
Is this referring specifically to the master & stacking implementation detail of the "tiled layout"?
As previous dim user, this would be an awesome addition. When first setting up yabai, I did some complex shortcuts to make this work. still not there yet 😆 . I think indeed it's referring to master & stacking impl
A shitty workaround, still no 'send new window to master'. Tried to implement it, but too buggy. It must be done in source, not in scripts.
CURRENT_DISPLAY=$(yabai -m query --windows --window | jq '.display')
WINDOWS_ARRAY=$(yabai -m query --windows --space $(yabai -m query --spaces --space | jq '.index') --display $CURRENT_DISPLAY | jq -r 'map(select(.["is-minimized"]==false and .["is-floating"]==false))')
NUMBER_OF_WINDOWS=$(echo $WINDOWS_ARRAY | jq -r 'length')
case $NUMBER_OF_WINDOWS in
[0-1])
yabai -m config split_type auto
;;
2)
;;
3)
yabai -m config split_ratio 0.5
yabai -m space --balance x-axis
yabai -m config split_type horizontal
;;
*)
yabai -m space --balance x-axis
;;
esac
I have successfully combined krohnkite-core with yabai.
There are still some bugs at the moment. After fixing some bugs, I will release an early version on GitHub. This should not take too long.
https://github.com/koekeishiya/yabai/assets/24669431/fae86b77-691f-4064-869c-350d6815f61c
Great, but to do it the right way, we need to change the logic in the source code of yabai. All scripts on top of it are doomed to behave nonsensical.
MacOS has some quirks
When closing the last visible window of the same app, if there is a minimized window in the app, the minimized window will be automatically displayed! (WTF)
When closing the last visible window of an app, if the app does not have a minimized window, another app that is different from it will not automatically gain focus! (WTF)
Even if the last window is closed, some apps still exist in the command + tab list! And even if it is selected, it cannot be reopened!!(Pollution)
The closing of the window does not always mean the exit of the app, cmd+q actually closes the app, but it closes all windows(Complex)
Basically all layouts of krohnkite already work on top of yabai.
There are four more things to deal with
Although moving the position of the window through the mouse and adjusting the size of the window through the mouse have not yet been processed
I am still planning to deal with compilation, packaging and distribution tomorrow
Because the requirements of the early version have now been met.
https://github.com/koekeishiya/yabai/assets/24669431/615044d8-cdee-479f-a1ba-bc35af9b0118
https://github.com/esjeon/krohnkite/issues/201#issuecomment-1797711146
Currently there are only development versions.
The release of npm, crates.io, brew, nix and github still requires some time to configure github actions and changesets.
https://dwm.suckless.org/https://wiki.hyprland.org/Configuring/Master-Layout/