skhd icon indicating copy to clipboard operation
skhd copied to clipboard

How to install if I don't use homebrew

Open esn89 opened this issue 4 years ago • 5 comments

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.

esn89 avatar Aug 10 '20 21:08 esn89

# 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

dominiklohmann avatar Aug 11 '20 06:08 dominiklohmann

@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?

esn89 avatar Aug 17 '20 07:08 esn89

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

dominiklohmann avatar Aug 17 '20 07:08 dominiklohmann

@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 :/

esn89 avatar Aug 17 '20 16:08 esn89

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.

dominiklohmann avatar Aug 17 '20 16:08 dominiklohmann