koekeishiya / skhd

Simple hotkey daemon for macOS
MIT License
6.16k stars 205 forks source link

How to install if I don't use homebrew #145

Open esn89 opened 4 years ago

esn89 commented 4 years ago

Hi, so I am using Macports and installing it via ports isn't an option.

I chose to clone and compile it and it built me a binary and a folder of: bin/skhd.dSYMC/Contents/Resources and "Info.plost"

What should I do with those?

I tried using launchctl and submitting the binary as a start up object but it keeps popping up the terminal everytime.

Some help would be appreciated.

dominiklohmann commented 4 years ago
# clone the repo
git clone https://github.com/koekeishiya/skhd.git

# enter the directory
cd skhd

# build skhd and install it
make install

# install the example launch agent
cp examples/com.koekeishiya.skhd.plist ~/Library/LaunchAgents/com.koekeishiya.skhd.plist

# load the launch agent
# this will prompt for permissions and restart until they're given
launchctl load -w ~/Library/LaunchAgents/com.koekeishiya.skhd.plist
esn89 commented 4 years ago

@dominiklohmann

Thanks for the comment. However, I am getting strange behavior. When my laptop boots, I get this strange pop up:

https://imgur.com/a/CjRXUEk

Any ideas?

dominiklohmann commented 4 years ago

Disable Secure Keyboard Entry in the application that is enabling it. skhd cannot work with it enabled by design.

esn89 commented 4 years ago

@dominiklohmann

I have done this: https://support.apple.com/guide/terminal/use-secure-keyboard-entry-trml109/mac

I went to the Terminal app to disable it. I made sure there isn't a checkmark there. However, this same problem is still happening :/

dominiklohmann commented 4 years ago

Look at your own screenshot: You need to find out which application the securityagent process belongs to, and disable Secure Keyboard Entry for that application specifically. As long as any application has it enabled, skhd cannot work.