Skip to content
This repository has been archived by the owner on Jul 10, 2018. It is now read-only.

Commit

Permalink
trying to figure out how to remap caps lock programmatically
Browse files Browse the repository at this point in the history
  • Loading branch information
bjeanes committed Nov 28, 2010
1 parent e1e4f3d commit 362424e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions colemak.rb
@@ -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

0 comments on commit 362424e

Please sign in to comment.