Demo entry 5968492

trtrtrtr

   

Submitted by anonymous on Sep 11, 2016 at 11:39
Language: XML. Code size: 4.5 kB.

<?xml version="1.0"?>
<root>

<!-- Launcher mode with hotkey ":" -->

<!-- Define trigger hotkey -->
<replacementdef>
  <replacementname>TRIGGERKEY</replacementname>
  <replacementvalue>
    KeyCode::SEMICOLON, ModifierFlag::SHIFT_L
  </replacementvalue>
</replacementdef>

<item>
  <name>My Launcher Mode for opening apps</name>
  <identifier>private.launcher_mode_open_apps_v21</identifier>

  <!-- condition: turn on launcher mode only when the trigger key is pressed without other keys. -->
  <pressingphysicalkeys_lessthan>3</pressingphysicalkeys_lessthan>
  <modifier_not>
    ModifierFlag::COMMAND_L,
    ModifierFlag::COMMAND_R,
    ModifierFlag::CONTROL_L,
    ModifierFlag::CONTROL_R,
    ModifierFlag::FN,
    ModifierFlag::OPTION_L,
    ModifierFlag::OPTION_R,
    ModifierFlag::SHIFT_R,
  </modifier_not>
  <autogen>
    __KeyOverlaidModifier__
    {{ TRIGGERKEY }},
    <!--
        Use notsave.launcher_mode_v2 in order to be higher priority.
        Use ModifierFlag::MY_LAUNCHER_MODE for __DropAllKeys__.
    -->
    @begin
      KeyCode::VK_CONFIG_SYNC_KEYDOWNUP_notsave_private_launcher_mode_v21, ModifierFlag::MY_LAUNCHER_MODE,
    @end

    @begin
      {{ TRIGGERKEY }},
    @end
  </autogen>
</item>

<item hidden="true">
  <identifier vk_config="true">notsave.private_launcher_mode_v21</identifier>

  <autogen>
    __BlockUntilKeyUp__
    {{ TRIGGERKEY }},
  </autogen>

  <autogen>
    __KeyDownUpToKey__
    KeyCode::F,
    KeyCode::VK_OPEN_URL_APP_FIREFOX,
  </autogen>

  <autogen>
    __KeyDownUpToKey__
    KeyCode::X,
    KeyCode::VK_OPEN_URL_APP_XCODE,
  </autogen>

    <autogen>
    __KeyDownUpToKey__
    KeyCode::T,
    KeyCode::VK_OPEN_URL_APP_ITERM,
    </autogen>

  <autogen>
    __KeyDownUpToKey__
    KeyCode::S,
    KeyCode::VK_OPEN_URL_APP_SUBLIMETEXT,
  </autogen>

  <autogen>
    __KeyDownUpToKey__
    KeyCode::Y,
    KeyCode::VK_OPEN_URL_APP_ULYSSES,
  </autogen>

<!-- Show desktop -->
  <autogen>
    __KeyToKey__
    KeyCode::C,
    KeyCode::VK_NONE,

    Option::KEYTOKEY_DELAYED_ACTION,
    KeyCode::MISSION_CONTROL, ModifierFlag::COMMAND_L,

    Option::KEYTOKEY_DELAYED_ACTION_CANCELED_BY, KeyCode::C,
    KeyCode::VK_OPEN_URL_APP_DigitalColor_Meter,
    KeyCode::VK_KEYTOKEY_DELAYED_ACTION_DROP_EVENT,
  </autogen>

<!-- Open folder in finder -->
  <autogen>
    __KeyToKey__
    KeyCode::D,
    KeyCode::VK_NONE,

      Option::KEYTOKEY_DELAYED_ACTION,
      KeyCode::VK_OPEN_URL_APP_Finder,

        Option::KEYTOKEY_DELAYED_ACTION_CANCELED_BY, KeyCode::C,
        KeyCode::VK_OPEN_URL_FILE_Desktop,
        KeyCode::VK_KEYTOKEY_DELAYED_ACTION_DROP_EVENT,

        Option::KEYTOKEY_DELAYED_ACTION_CANCELED_BY, KeyCode::F,
        KeyCode::VK_OPEN_URL_FILE_Home,
        KeyCode::VK_KEYTOKEY_DELAYED_ACTION_DROP_EVENT,

        Option::KEYTOKEY_DELAYED_ACTION_CANCELED_BY, KeyCode::D,
        KeyCode::VK_OPEN_URL_FOLDER_MYDOC,
        KeyCode::VK_KEYTOKEY_DELAYED_ACTION_DROP_EVENT,

        Option::KEYTOKEY_DELAYED_ACTION_CANCELED_BY, KeyCode::I,
        KeyCode::VK_OPEN_URL_FOLDER_DOWNLOAD_INBOX,
        KeyCode::VK_KEYTOKEY_DELAYED_ACTION_DROP_EVENT,
  </autogen>

<!-- For 1Password -->
  <autogen>
    __KeyToKey__
    KeyCode::P,
    KeyCode::VK_NONE,

      Option::KEYTOKEY_DELAYED_ACTION,
      KeyCode::Z, ModifierFlag::OPTION_L | ModifierFlag::SHIFT_R | ModifierFlag::CONTROL_L,

        Option::KEYTOKEY_DELAYED_ACTION_CANCELED_BY, KeyCode::P,
        KeyCode::Y, ModifierFlag::OPTION_L | ModifierFlag::SHIFT_R | ModifierFlag::CONTROL_L,
        KeyCode::VK_KEYTOKEY_DELAYED_ACTION_DROP_EVENT,
  </autogen>
<!-- For switching window focus (CMD + `) -->
  <autogen>
    __KeyDownUpToKey__
    KeyCode::A,
    KeyCode::BACKQUOTE, ModifierFlag::COMMAND_L,
  </autogen>

<!-- For system commands -->
  <autogen>
    __KeyToKey__
    KeyCode::G,
    KeyCode::VK_NONE,

    Option::KEYTOKEY_DELAYED_ACTION,
    KeyCode::VK_NONE,

    Option::KEYTOKEY_DELAYED_ACTION_CANCELED_BY, KeyCode::S,
    KeyCode::VK_OPEN_URL_SHUTDOWN,
    KeyCode::VK_KEYTOKEY_DELAYED_ACTION_DROP_EVENT,

  </autogen>
<!-- This is for FIREFOX only -->
    <block>
      <!-- This filter will not be applied to parent autogens. -->
      <only>FIREFOX</only>
      <autogen>
        __KeyToKey__
        KeyCode::N,

        KeyCode::J, ModifierFlag::COMMAND_L,
      </autogen>
    </block>
</item>

</root>

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).