Created
August 29, 2015 23:58
-
-
Save danielmai/c923a28bd987ce366030 to your computer and use it in GitHub Desktop.
Script to toggle sticky keys on OS X.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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