skhd: Skhd is not working with MacOS Ventura 13.4

Skhd stop working in my OS. I’ve been countless hours trying to solve it because skhd makes me much more productive, and I couldn’t. Clarification: I disabled security integrity protection, I disabled secure keyboard entry, I rebooted my pc

My first error is: skhd: successfully created pid-file.

  • skhd is not running twice and I have writing permissions: as recommended in #74 and #243
  • This file ~/Library/LaunchAgents/homebrew.<something>.skhd.plist is the same as recommended here #126

Codesigning

  1. brew uninstall koekeishiya/formulae/skhd
  2. I eliminated skhd from settings>privacy and security> accessibility
  3. Reboot
  4. brew install koekeishiya/formulae/skhd --HEAD
  5. Codesign (the actual directory and not the symlink)
  6. Configure scripting
  7. skhd --start-service
  8. I authorize access in settings>privacy and security> accessibility
  • I get this error: skhd: successfully created pid-file.. skhd: must be run with accessibility access! abort..

  • So, it creates the pid-file but it doesn’t enable the access of skhd (even though my box is checked in accessibility!)

  • any ideas about how can I solve this?

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Reactions: 6
  • Comments: 15

Most upvoted comments

Skhd is working on my OS. However, if I run skhd -V I still get skhd: could not lock pid-file! abort..

Here are some of the issues that I fixed to get it working:

  • I delete this line <my_keymap> : yabai -m display --focus west. With this line skhd doesn’t work.

  • It seems that Ventura 13.4 sometimes automatically enables “ApplePressAndHOldEnabled” in the OS, and therefore “Security entry keyboard” in iterm2 (in the menu bar>iterm2 it appears a - and it cannot be deselected). I took this steps:

  1. In the terminal run defaults read -g ApplePressAndHoldEnabled. If the output is 1, it means that the security entry keyboard is enabled (You’ll see the - in menubar>iterm2
  2. Run defaults write -g ApplePressAndHoldEnabled -bool true
  3. Run again defaults read -g ApplePressAndHoldEnabled, now the output should be 0
  4. Kill the session by doing either pkill -u <username> (less aggressive) or sudo pkill -9 -u <username>
  5. After login again skhd should be working. You can check that the output is still 0 when you run defaults read -g ApplePressAndHoldEnabled, and in menubar>iterm2 “Security entry keyboard” won’t have a tick or a dash