Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
Included automatic opening Accessibility Settings to add the SetLedsMac app
  • Loading branch information
KoalafiedDev authored Jan 12, 2025
1 parent a2a912a commit 6e88465
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
# 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."

0 comments on commit 6e88465

Please sign in to comment.