nikitabobko / AeroSpace

AeroSpace is an i3-like tiling window manager for macOS
https://nikitabobko.github.io/AeroSpace/guide
MIT License
6.08k stars 98 forks source link

Mouse Events #371

Open samholmes opened 1 month ago

samholmes commented 1 month ago

Events like mouse move or mouse click would be useful to exit modes. My current main mode only has one binding to enter an alt mode with all my single key bindings to navigate windows etc. The space bar is the exit binding from this alt mode. Being able to setup mouse events to also exit this alt mode would be very handy and useful to not accidentally forget that I'm in the alt mode.

nikitabobko commented 1 month ago

Something like this could be supported in future versions

[mode.service.binding]
leftMouseUp = 'mode main'
leftMouseDown = 'mode main'
rightMouseUp = 'mode main'
rightMouseDown = 'mode main'

Things to consider: feature interaction with modifiers

[mode.main.binding]
alt-leftMouseDown = 'grab-window on'
alt-leftMouseUp = 'grab-window off'