Skip to content

Is there a way to make Yabai remember what windows I've floated/unfloated? #809

Answered by joshtwo
leftbones asked this question in Q&A
Discussion options

You must be logged in to vote

I'd create a hotkey in skhd which will not just float the currently selected window, but add a signal to window_created for that same app so that it automatically does so next time. You may want another hotkey which will remove the signal for you if you're tired of floating those windows, or you could even have the hotkey itself look up your "float always signal" for the app to decide whether to remove it or add a new one.

I got this working for me. Thanks for the config idea.

# remember float setting
fn - t : app=$(yabai -m query --windows --window mouse | jq -r '.app' | tr ' ' '_');\
         yabai -m window --toggle float;\
         yabai -m signal --remove autofloat_$app || yabai -m s…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@joshtwo
Comment options

@leftbones
Comment options

@leftbones
Comment options

@bbraunj
Comment options

Answer selected by koekeishiya
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants