dca331c6bf8f

fzero
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Wed, 15 Jan 2014 13:03:42 -0500
parents dd2ad752826b
children 58517051b471 3a708b3e87ac
branches/tags (none)
files keymando/keymandorc.rb keyremap4macbook/private.xml

Changes

--- a/keymando/keymandorc.rb	Wed Jan 15 10:48:05 2014 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,49 +0,0 @@
-# Basic -----------------------------------------------------------------------
-start_at_login
-
-disable "Remote Desktop Connection"
-disable /VirtualBox/
-
-map "<Ctrl-m>", "<Cmd-Shift-/>"
-# map "<Ctrl-Shift-R>", lambda { reload() }
-
-# Application Switching -------------------------------------------------------
-map "<Ctrl-Shift-K>", lambda { activate('Firefox') }
-map "<Ctrl-Shift-P>", lambda { activate('Pixelmator') }
-map "<Ctrl-Shift-H>", lambda { activate('Pixen') }
-map "<Ctrl-Shift-O>", lambda { activate('Rdio') }
-map "<Ctrl-Shift-Y>", lambda { activate('Twitter') }
-
-map "<Ctrl-Shift-J>" do
-    activate('iTerm')
-    send('<Cmd-Option-2>')
-end
-map "<Ctrl-Shift-M>" do
-    activate('iTerm')
-    send('<Cmd-Option-1>')
-    send('<Ctrl-f>')
-    send('2')
-end
-map "<Ctrl-Shift-I>" do
-    activate('iTerm')
-    send('<Cmd-Option-1><Ctrl-f>1')
-end
-
-# Refresh ---------------------------------------------------------------------
-
-map "<Ctrl-Shift-R>" do
-  activate('Firefox')
-  send("<Cmd-r>")
-  send("<Cmd-Tab>")
-end
-
-# Leader ----------------------------------------------------------------------
-# map "<Ctrl-,>" do
-#     input()
-# end
-
-# Abbreviations ---------------------------------------------------------------
-
-# abbrev 'ldis' do
-#   send('ಠ_ಠ')
-# end
--- a/keyremap4macbook/private.xml	Wed Jan 15 10:48:05 2014 -0500
+++ b/keyremap4macbook/private.xml	Wed Jan 15 13:03:42 2014 -0500
@@ -1115,6 +1115,67 @@
 
             </item>
         </item>
+        <item>
+            <name>F-Zero</name>
+            <appendix>This mode makes the F key (yes, the vanilla F key) enter a separate mode when held.</appendix>
+            <appendix>It's useful to add another layer to your keyboard with a super-easy key.</appendix>
+
+            <identifier>f_zero.enable</identifier>
+
+            <autogen>--KeyOverlaidModifier-- KeyCode::F, KeyCode::VK_MODIFIER_EXTRA2, KeyCode::F</autogen>
+            <autogen>__KeyToKey__ KeyCode::H, ModifierFlag::EXTRA2, KeyCode::CURSOR_LEFT</autogen>
+            <autogen>__KeyToKey__ KeyCode::J, ModifierFlag::EXTRA2, KeyCode::CURSOR_DOWN</autogen>
+            <autogen>__KeyToKey__ KeyCode::K, ModifierFlag::EXTRA2, KeyCode::CURSOR_UP</autogen>
+            <autogen>__KeyToKey__ KeyCode::L, ModifierFlag::EXTRA2, KeyCode::CURSOR_RIGHT</autogen>
+
+            <autogen>__KeyToKey__ KeyCode::A, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::A</autogen>
+            <autogen>__KeyToKey__ KeyCode::B, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::B</autogen>
+            <autogen>__KeyToKey__ KeyCode::C, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::C</autogen>
+            <!-- <autogen>__KeyToKey__ KeyCode::D, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::D</autogen> -->
+            <autogen>__KeyToKey__ KeyCode::E, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::E</autogen>
+            <autogen>__KeyToKey__ KeyCode::F, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::F</autogen>
+            <autogen>__KeyToKey__ KeyCode::G, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::G</autogen>
+            <!-- <autogen>__KeyToKey__ KeyCode::H, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::H</autogen> -->
+            <autogen>__KeyToKey__ KeyCode::I, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::I</autogen>
+            <!-- <autogen>__KeyToKey__ KeyCode::J, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::J</autogen> -->
+            <!-- <autogen>__KeyToKey__ KeyCode::K, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::K</autogen> -->
+            <!-- <autogen>__KeyToKey__ KeyCode::L, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::L</autogen> -->
+            <autogen>__KeyToKey__ KeyCode::M, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::M</autogen>
+            <autogen>__KeyToKey__ KeyCode::N, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::N</autogen>
+            <autogen>__KeyToKey__ KeyCode::O, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::O</autogen>
+            <autogen>__KeyToKey__ KeyCode::P, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::P</autogen>
+            <autogen>__KeyToKey__ KeyCode::Q, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::Q</autogen>
+            <autogen>__KeyToKey__ KeyCode::R, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::R</autogen>
+            <autogen>__KeyToKey__ KeyCode::S, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::S</autogen>
+            <autogen>__KeyToKey__ KeyCode::T, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::T</autogen>
+            <autogen>__KeyToKey__ KeyCode::U, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::U</autogen>
+            <autogen>__KeyToKey__ KeyCode::V, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::V</autogen>
+            <autogen>__KeyToKey__ KeyCode::W, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::W</autogen>
+            <autogen>__KeyToKey__ KeyCode::X, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::X</autogen>
+            <autogen>__KeyToKey__ KeyCode::Y, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::Y</autogen>
+            <autogen>__KeyToKey__ KeyCode::Z, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::Z</autogen>
+
+            <autogen>__KeyToKey__ KeyCode::SPACE, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::SPACE</autogen>
+            <autogen>__KeyToKey__ KeyCode::DELETE, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::DELETE</autogen>
+            <autogen>__KeyToKey__ KeyCode::RETURN, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::RETURN</autogen>
+            <autogen>__KeyToKey__ KeyCode::TAB, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::TAB</autogen>
+            <autogen>__KeyToKey__ KeyCode::BACKSLASH, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::BACKSLASH</autogen>
+            <autogen>__KeyToKey__ KeyCode::COMMA, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::COMMA</autogen>
+            <autogen>__KeyToKey__ KeyCode::DOT, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::DOT</autogen>
+            <autogen>__KeyToKey__ KeyCode::SEMICOLON, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::SEMICOLON</autogen>
+            <autogen>__KeyToKey__ KeyCode::BRACKET_LEFT, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::BRACKET_LEFT</autogen>
+            <autogen>__KeyToKey__ KeyCode::BRACKET_RIGHT, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::BRACKET_RIGHT</autogen>
+            <autogen>__KeyToKey__ KeyCode::QUOTE, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::QUOTE</autogen>
+            <autogen>__KeyToKey__ KeyCode::SHIFT_R, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::KEY_0, ModifierFlag::SHIFT_L</autogen>
+            <autogen>__KeyToKey__ KeyCode::SHIFT_L, ModifierFlag::EXTRA2, KeyCode::F, KeyCode::KEY_9, ModifierFlag::SHIFT_L</autogen>
+
+            <!-- <autogen>__KeyOverlaidModifier__ KeyCode::D, ModifierFlag::EXTRA2, KeyCode::VK_MODIFIER_EXTRA1, KeyCode::D</autogen> -->
+            <!-- <autogen>__KeyToKey__ KeyCode::H, ModifierFlag::EXTRA1, KeyCode::CURSOR_LEFT, ModifierFlag::OPTION_L</autogen> -->
+            <!-- <autogen>__KeyToKey__ KeyCode::J, ModifierFlag::EXTRA1, KeyCode::CURSOR_DOWN, ModifierFlag::OPTION_L</autogen> -->
+            <!-- <autogen>__KeyToKey__ KeyCode::K, ModifierFlag::EXTRA1, KeyCode::CURSOR_UP, ModifierFlag::OPTION_L</autogen> -->
+            <!-- <autogen>__KeyToKey__ KeyCode::L, ModifierFlag::EXTRA1, KeyCode::CURSOR_RIGHT, ModifierFlag::OPTION_L</autogen> -->
+
+        </item>
     </list>
 </root>