skhd icon indicating copy to clipboard operation
skhd copied to clipboard

Is it possible to listen for mouse clicks?

Open shth opened this issue 2 years ago • 4 comments

Is it possible to run command when the mouse buttons are clicked? e.g. button1 : <command>

shth avatar Jan 31 '23 15:01 shth

I was thinking exactly the same thing. My use case would be to have mod + button 4/5 to focus prev/next space. Handy.

frigaut avatar Feb 16 '23 03:02 frigaut

+1 for this!

OneRaynyDay avatar Feb 22 '23 15:02 OneRaynyDay

Current implementation of skhd doesn't seem to listen for mouse clicks. While it is possible to do so, I think this project is no longer maintained to implement new features.

lokxii avatar Mar 04 '23 10:03 lokxii

I am working on it on my fork. I have already implemented

  • listening to mouse down events
  • parsing mouse buttons in config file
  • '-o' / '--observe' flag also listens to mouse down events to check your mouse button number

I haven't implement synthesizing mouse clicks yet. Once everything is ready, I will make a pull request. Hope @koekeishiya will take a look and give some comments.

lokxii avatar Mar 05 '23 08:03 lokxii