hammerspoon icon indicating copy to clipboard operation
hammerspoon copied to clipboard

Possible to generate 3-finger swipe?

Open eproxus opened this issue 2 years ago • 3 comments

Is there a way to generate a 3-finger swipe (to switch spaces in macOS) using Hammerspoon and the hs.eventtap libraries (or something else)?

I was inspired by this HN comment which points out the tool BetterMouse which has custom keybindings for 3-finger swipes. They have enabled a very high swipe speed so switching spaces like that feels very snappy.

Since I have a lot of Hammerspoon configuration already, I thought, maybe there's a way to achieve that with Hammerspoon too?

eproxus avatar Aug 24 '23 10:08 eproxus

You could use https://github.com/JitouchApp/Jitouch to map a 3-finger swipe to some random shortcut and then use hammerspoon to assign this shortcut to whatever you want it to do.

samcarter avatar Sep 02 '23 14:09 samcarter

The problem I'm trying to solve is to create a synthetic event with a high value for the swipe amount. Would that be possible with Jitouch?

eproxus avatar Oct 12 '23 09:10 eproxus

I don't think Jitouch can generate touch events with custom parameters, such as increased speed.

eproxus avatar Oct 12 '23 09:10 eproxus