diff --git a/install.sh b/install.sh index 766fb42..4f9d477 100755 --- a/install.sh +++ b/install.sh @@ -28,4 +28,14 @@ launchctl load -w /Library/LaunchDaemons/com.KoalafiedDev.setleds.plist echo "Starting the job .. " launchctl start /Library/LaunchDaemons/com.KoalafiedDev.setleds.plist || : -echo "All done! Numlock functionality should now be restored." \ No newline at end of file +# Open Accessibility settings and display instructions +echo "Opening System Preferences -> Security & Privacy -> Accessibility ..." +open "x-apple.systempreferences:com.apple.preference.security?Privacy_Accessibility" + +osascript -e 'display notification "Please add the SetLEDs app to Accessibility permissions in System Preferences -> Security & Privacy." with title "Accessibility Permission Required"' + +echo "IMPORTANT: Grant Accessibility permission" +echo "1. Press: Command + Shift + G." +echo "2. Add the app binary located at: ${BINARY}" + +echo "All done! Caps lock functionality should now be restored after a restart." \ No newline at end of file