datavorous / amine

Distraction blocker which monitors your mouse and keyboard. Prevents you from switching tabs and wasting your time.
https://datavorous.github.io/amine/
MIT License
155 stars 12 forks source link

Build for Mac and Linux #6

Open datavorous opened 2 months ago

datavorous commented 2 months ago

Build binaries for Mac and Linux Test if it works on both

memyselfandglitch commented 1 month ago

Hello, while I was trying to set up the project locally I noticed Winsound isn't compatible with Linux or Mac (I use MacOS) so could I go ahead and make changes in the project to check the platform and if it is not windows then use an alternative of Winsound.

datavorous commented 1 month ago

@memyselfandglitch yes that would be great!

memyselfandglitch commented 1 month ago

I am kind of struggling with the threading part. Although it works really well on Windows on Mac there are a lot of issues related to the accessibility of keyboards and key blocking. Is it alright if I make the MacOS part synchronous and Windows would still continue to function the way it is. I have tried to solve it through every way I can think of.

datavorous commented 1 month ago

Is it alright if I make the MacOS part synchronous and Windows would still continue to function the way it is.

Yes. @memyselfandglitch

SShubham1 commented 3 weeks ago

@memyselfandglitch I am on Linux and the error in threading is coming because flaskwebgui can't the browser command as specified in site-packages/flaskwebgui.py, a workaround could be making soft link of browser command to the respective location in flaskwebgui.py. Keyboard is causing error as it requires sudo a possible workaround would be using pynput module. You can checkout some changes that I did.