Skip to content

Instantly share code, notes, and snippets.

@danielmai
Created August 29, 2015 23:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielmai/c923a28bd987ce366030 to your computer and use it in GitHub Desktop.
Save danielmai/c923a28bd987ce366030 to your computer and use it in GitHub Desktop.
Script to toggle sticky keys on OS X.
read = %x(defaults read com.apple.universalaccess | grep stickyKey)
if /stickyKey = 0;$/ =~ read
%x(defaults write com.apple.universalaccess stickyKey 1)
else
%x(defaults write com.apple.universalaccess stickyKey 0)
end
%x(killall universalaccessd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment