This commit is contained in:
Ivan Malison 2014-10-23 03:42:35 -07:00
parent 92fff5cd2e
commit 7988eb7f6a
4 changed files with 25 additions and 8 deletions

@ -1 +1 @@
Subproject commit af089b245a9b18bc6cd005260dcf4cd60fe51cd7
Subproject commit cfc45035ac58e9713f8dc9bf7d75a95e79111307

View File

@ -208,15 +208,15 @@ function pip_package_location() {
}
function set_modifier_keys_for_vendor_product_id() {
defaults -currentHost write -g com.apple.keyboard.modifiermapping.$1-0 '(
{
HIDKeyboardModifierMappingDst = 2;
HIDKeyboardModifierMappingSrc = 0;
})'
local mapping="<dict><key>HIDKeyboardModifierMappingDst</key><integer>$3</integer><key>HIDKeyboardModifierMappingSrc</key><integer>$2</integer></dict>"
echo $mapping
defaults -currentHost write -g com.apple.keyboard.modifiermapping.$1-0 -array-add "$mapping"
}
function set_modifier_keys_on_all_keyboards() {
for vendor_product_id in $(get_keyboard_vendor_id_product_id_pairs | tr " " "-"); do set_modifier_keys_for_vendor_product_id $vendor_product_id; echo $vendor_product_id; done;
for vendor_product_id in $(get_keyboard_vendor_id_product_id_pairs | tr " " "-"); do
set_modifier_keys_for_vendor_product_id $vendor_product_id 0 2; echo $vendor_product_id;
done;
}
function get_keyboard_vendor_id_product_id_pairs() {

17
dotfiles/slate.js Normal file
View File

@ -0,0 +1,17 @@
var hint = slate.op("hint", {
"characters" : "ASDFGHJKLQWERTYUIOPCVBN"
});
var grid = slate.op("grid", {
grids: {
"1920x1080": {"width": 8, "height": 6}
}
});
slate.bindAll({
"esc:cmd": hint,
"space:alt": grid
});
slate.configAll({
windowHintsIgnoreHiddenWindows: false,
windowHintsShowIcons: true,
windowHintsSpread: true
});

View File

@ -35,7 +35,7 @@ MISC = ("file-formula", "less", "openssh --with-brewed-openssl",
"perl518", "rsync", "svn", "unzip", "docker", "boot2docker", "pandoc",
"mercurial")
CASKS = ('caffeine', 'flux', 'google-chrome', 'iterm2', 'spotify',
'vlc', 'virtualbox', 'xquartz', 'synergy', 'slate')
'vlc', 'virtualbox', 'xquartz', 'synergy', 'slate', 'seil')
@ctask