Window Movement and Resizing #1721
-
Hi, So, when I hold command, the window under the cursor moves, and when I hold control, it resizes. Is that currently possible? maybe in conjunction with skhd? The problem is, like Monterey killed TotalSpaces, Ventura killed HyperDock. It crashes roughly every 24 hours. When that happens, I have to open System Setting and go to HyperDock tab. It then detects that it has crashed and restarts. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Uh not really possible without code changes. In the current structure these actions are bound to mouse-buttons: https://github.com/koekeishiya/yabai/blob/master/src/event.c#L965 and https://github.com/koekeishiya/yabai/blob/master/src/event.c#L998 It would be possible to have this code trigger from a modifier press/release action instead of modifier+mouse_button press/release, however it would need the event tap to listen for Ideally the mouse-actions (move/resize) should be made into commands; I wrote something about that here a long time ago. |
Beta Was this translation helpful? Give feedback.
-
Out of curiosity, how would you expect a "modifier" only solution to work. Would there be some timer threshold that the modifier would have to be held down before a command is executed, or should it always execute a command when the modifier key is pressed down. Lets say when I imagine it would be press and hold cmd for <activation time> seconds before that command would trigger. That would introduce some kind of latency to how responsive that operation would be to use, but this is probably not purely about responsiveness, but ergonometry / ease of use. I guess my question boils down to; is a forced activation delay an acceptable solution? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh not really possible without code changes. In the current structure these actions are bound to mouse-buttons: https://github.com/koekeishiya/yabai/blob/master/src/event.c#L965 and https://github.com/koekeishiya/yabai/blob/master/src/event.c#L998
It would be possible to have this code trigger from a modifier press/release action instead of modifier+mouse_button press/release, however it would need the event tap to listen for
kCGEventFlagsChanged
events and act appropriately.Ideally the mouse-actions (move/resize) should be made into commands; I wrote something about that here a long time ago.