This repository has been archived by the owner on Jul 10, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
trying to figure out how to remap caps lock programmatically
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,3 +1,20 @@ | |||
dep 'colemak', :template => 'keyboard_layout' do | dep 'colemak', :template => 'keyboard_layout' do | ||
requires 'caps lock remapped to backspace' | |||
source "http://github.com/downloads/bjeanes/colemak/ColemakKeyboardLayouts.bundle.zip" | source "http://github.com/downloads/bjeanes/colemak/ColemakKeyboardLayouts.bundle.zip" | ||
end | end | ||
|
|||
dep 'caps lock remapped to backspace' do | |||
requires 'PCKeyboardHack.installer', 'osx hidden binaries' | |||
|
|||
met? { false } # Not sure the best way to check that this is working | |||
meet { | |||
# This sets the right preference but I think we need to restart PCKeyboardHack? | |||
shell 'PlistBuddy -c "Add :sysctl:enable_capslock integer 1" ~/Library/Preferences/org.pqrs.PCKeyboardHack.plist' | |||
} | |||
end | |||
|
|||
dep 'PCKeyboardHack.installer' do | |||
source 'http://pqrs.org/macosx/keyremap4macbook/files/PCKeyboardHack-6.3.0.pkg.zip' | |||
|
|||
met? { "/Library/PreferencePanes/PCKeyboardHack.prefPane".p.exists? } | |||
end |