ILikeAI / AlwaysReddy

AlwaysReddy is a LLM voice assistant that is always just a hotkey away.
MIT License
669 stars 69 forks source link

Confused how to run on MacOS #100

Open divan opened 4 days ago

divan commented 4 days ago

Hi, fantastic project! I followed installation steps for MacOS, all went smoothly, but now stuck with two things:

1) Hotkeys

There is no 'default' hotkeys for MacOS in config.py comments section.

Defining hotkeys is often confusing topic in other apps (is it cmd or CMD, 'super'-key etc), but then here is a line in config.py that says:

# On Mac/Linux, a hotkey cannot overlap another (e.g. cmd+e and cmd+shift+e)

What does it mean? Should I check system hotkeys and make sure that chosen hotkey is not overlapping?

I added 'cmd-shift-m', but nothing happens. I don't know if something is wrong with hotkey or it's another issue. (That's why it would be cool to have default hotkeys)

2) I see a line in the output, which probably explains why hotkeys is not working.

This process is not trusted! Input event monitoring will not be possible until it is added to accessibility clients.

The concept of adding apps to the trusted list is not unusual on MacOS, but quick search on Readme reveals nothing about it. How do I do it? Should go to settings and add that bash script run_AlwaysReddy.sh to the list? Or it's something else completely?

Bottom line, it's a bit frustrating how smoothly the installation went, and how it's impossible to use the app out of the box because of the main UI promise (just hotkeys) needs some non-documented configuration first.

divan commented 4 days ago

Anyone using this project on MacOS could share their configuration and setup perhaps?

divan commented 4 days ago

Figured out second issue - need to add terminal to the Accessibility list in Settings->Privacy (in my case it's 'Warp' terminal) Screenshot 2024-11-28 at 13 44 10

Trying different hotkeys now, still can't make it work (

divan commented 4 days ago

Next, we need to add terminal to the Input Monitoring too in Privacy->Settings: Screenshot 2024-11-28 at 13 49 37

That finally makes hotkeys work. My current setup (just replaced ctrl with cmd):

CANCEL_HOTKEY = 'cmd+shift+e'
NEW_CHAT_HOTKEY = 'cmd+shift+w'
RECORD_HOTKEY = 'cmd+shift+r' # Press to start, press again to stop, or hold and release. Double tap to include clipboard
READ_FROM_CLIPBOARD = "cmd+shift+c"
TRANSCRIBE_RECORDING = "cmd+shift+t"