Skip to content
Browse files

add private.xml and stuff

  • Loading branch information...
1 parent 1970ccb commit 82bef8176be3b4591abc43ebe0dabff02b9fca83 @myfreeweb committed
Showing with 45 additions and 1 deletion.
  1. +1 −0 ackrc
  2. +2 −0 install.sh
  3. +40 −0 private.xml
  4. +1 −1 slate
  5. +1 −0 vim/vimrc
View
1 ackrc
@@ -17,6 +17,7 @@
--ignore-dir=.sass-cache
--ignore-dir=build
--ignore-dir=dist
+--ignore-dir=node_modules
--type-add=html=haml,jade,mustache,tpl,erb,slim
--type-add=css=sass,scss,less,styl,ccss,clevercss
--type-add=js=coffee
View
2 install.sh
@@ -56,6 +56,8 @@ elif [[ $(uname) = 'Darwin' ]]; then
link_custom scpt $HOME/Library/Scripts
mkdir -p $HOME/Library/KeyBindings
link_custom keybindings/DefaultKeyBinding.dict $HOME/Library/KeyBindings/DefaultKeyBinding.dict
+ mkdir -p $HOME/Library/Application\ Support/KeyRemap4MacBook
+ link_custom private.xml $HOME/Library/Application\ Support/KeyRemap4MacBook/private.xml
QUAKE=$HOME/Library/Application\ Support/QuakeLive/quakelive/home/baseq3
for agent in ./launchd/*; do
ln -s $(ruby -e "puts File.expand_path(\"$agent\")") $HOME/Library/LaunchAgents/
View
40 private.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0"?>
+<root>
+ <!-- http://stevelosh.com/blog/2012/10/a-modern-space-cadet/ -->
+ <item>
+ <name>Remap Left Control to Hyper</name>
+ <appendix>OS X doesn't have a Hyper. This maps Left Control to Control + Shift + Option + Command.</appendix>
+ <identifier>space_cadet.left_control_to_hyper</identifier>
+ <autogen>
+ --KeyToKey--
+ KeyCode::F19,
+
+ KeyCode::COMMAND_L,
+ ModifierFlag::OPTION_L | ModifierFlag::SHIFT_L | ModifierFlag::CONTROL_L
+ </autogen>
+ </item>
+ <item>
+ <name>Shifts to Parentheses</name>
+ <appendix>Shifts, when pressed alone, type parentheses. When used with other keys they're normal shifts.</appendix>
+
+ <identifier>private.shifts_to_parens</identifier>
+
+ <!-- This is the basic mapping. -->
+ <autogen>--KeyOverlaidModifier-- KeyCode::SHIFT_R, ModifierFlag::SHIFT_R | ModifierFlag::NONE, KeyCode::SHIFT_R, KeyCode::KEY_0, ModifierFlag::SHIFT_L</autogen>
+ <autogen>--KeyOverlaidModifier-- KeyCode::SHIFT_L, ModifierFlag::SHIFT_L | ModifierFlag::NONE, KeyCode::SHIFT_L, KeyCode::KEY_9, ModifierFlag::SHIFT_R</autogen>
+
+ <!--
+ Remap the "rolls" of () and )( because it's too easy to hit one
+ before finishing the other, and there's no other reason to be
+ pressing both shift keys at once anyway
+ -->
+ <autogen>--KeyToKey-- KeyCode::SHIFT_L, ModifierFlag::SHIFT_R, KeyCode::KEY_0, ModifierFlag::SHIFT_L, KeyCode::KEY_9, ModifierFlag::SHIFT_L</autogen>
+ <autogen>--KeyToKey-- KeyCode::SHIFT_R, ModifierFlag::SHIFT_L, KeyCode::KEY_9, ModifierFlag::SHIFT_L, KeyCode::KEY_0, ModifierFlag::SHIFT_L</autogen>
+
+ <!--
+ Remap Rshift+Space to ') ', because when typing an end paren and
+ then a space I tend to hit space before I let go of rshift.
+ -->
+ <autogen>--KeyToKey-- KeyCode::SPACE, ModifierFlag::SHIFT_R, KeyCode::KEY_0, ModifierFlag::SHIFT_L, KeyCode::SPACE</autogen>
+ </item>
+</root>
View
2 slate
@@ -26,7 +26,7 @@ bind down:${nudgekeys} nudge +0 +5%
bind up:${nudgekeys} nudge +0 -5%
# ------------------------------------------------------------------------------- Focus
-alias focuskeys ctrl;shift
+alias focuskeys ctrl;shift;alt;cmd # hyper
bind n:${focuskeys} focus 'Google Chrome'
bind e:${focuskeys} focus 'iTerm'
bind i:${focuskeys} focus 'ForkLift'
View
1 vim/vimrc
@@ -72,6 +72,7 @@ set wildignore+=*.spl " compiled spelling word list
set wildignore+=*.sw? " Vim swap files
set wildignore+=.DS_Store,Thumbs.db " Shit
set wildignore+=target " JVM compiled stuff
+set wildignore+=node_modules,build
" paths
set shell=zsh

0 comments on commit 82bef81

Please sign in to comment.
Something went wrong with that request. Please try again.