multiple mouse_modifiers
- Dominant language
- C
- Stars
- 29.6k
- Forks
- 750
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I find the mouse_actions using mouse_modifier in yabai is very useful. However utilizing both the actions together is not very convenient when using only the trackpad. I am forced to limit usage only to one action.
**Context:**
I am using tapping fingers on trackpad for click and sliding fingers for drags. i.e using one finger tap for left click and two finger tap for right click. Doubletap & slide to click and drag and two finger slides for scrolling. Right click drag is not possible by doubletapping with two fingers and draging. It can only be done by pressing down with two fingers on the trackpad and sliding (which is not very friendly as you have to keep up the pressure while sliding the fingers on the trackpad. In most cases you lose the right click drag in between due to lose in pressure or accidently lifting one finger).
**Question / Request**
It would have been more convenient to use two different modifiers to do different actions (move and resize) using the same mouse button. For example: Hold down _fn_ key and left click drag for moving windows and hold down _ctrl_ key and left click drag to resize windows. Is this currently possible in yabai?
In case it is not, can something like this be implemented?
mouse_modifier1 fn
mouse_modifier2 ctrl
mouse_mod1_action1 move
mouse_mod1_action2 off
mouse_mod2_action1 resize
mouse_mod2_action2 off
Regards,
John
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the existing mouse_actions and mouse_modifier configuration and tracing how a modifier selects move or resize behavior. Check whether multiple modifier/action pairs can be represented without changing current behavior, then verify that fn and ctrl can independently trigger move and resize with the same mouse button.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, macos
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100