koekeishiya / yabai

A tiling window manager for macOS based on binary space partitioning
MIT License
24.04k stars 652 forks source link

Toggle Window Sticky not work for me #1688

Closed Apolsus closed 1 year ago

Apolsus commented 1 year ago

Reffernce to the document, yabai -m window --toggle sticky change the sticky property of the window. However, it never works, the sticky property is always false.

I write a script and bind it to hotkey option+U, here is the script

 1 #!/bin/zsh
  2
  3 # @raycast.schemaVersion 1
  4 # @raycast.title Sticky Window
  5 # @raycast.mode fullOutput
  6
  7 # Documentation:
  8 # @raycast.description Toggle current window's sticky status
  9 # @raycast.author Amadeus
 10
 11
 12 yabai -m window --toggle sticky
 13 yabai -m query --windows --window

How to solve this?

System: MacOS 13 Deviec: mbp(m1)

Apolsus commented 1 year ago

Solved, I upgrade yabai without update the visudo file.

And this https://github.com/koekeishiya/yabai/issues/1054#issuecomment-1059404384 is very important!