Giter VIP home page Giter VIP logo

slate-configuration's Introduction

#Slate configuration Configuration file for my Slate setup.

Installation

Clone this repository to a folder of your choice and follow this guide to get going. This setup is using a "Hyper" key, we will assume you want it set to Caps Lock.

###Install PCKeyboardHack First step is to install PCKeyboardHack to bind the Caps Lock key to F19 (a key that doesn't even exist on most keyboards).

  1. Launch PCKeyboardHack
  2. Check the checkbox next to Change Caps Lock
  3. Set it to keycode 80

In order to not confuse OS X you have to disable to Caps Lock as well.

  1. Open System Preferences
  2. Go to Keyboard
  3. Click Modifier Keys... button
  4. Next to Caps Lock (⇪) Key select No Action (make sure you do it on every keyboard if you have more than one connected)

###Install KeyRemap4MacBook Now you have to install KeyRemap4MacBook in order to bind the F19 to "Hyper" key (Control + Shift + Option + Command).

  1. Launch KeyRemap4MacBook
  2. Go to Misc & Uninstall
  3. Click Open private.xml under Custom Setting
  4. Make sure it has the following content and save it.
<?xml version="1.0"?>
<root>
    <item>
        <name>Remap F19 to Hyper</name>
        <appendix>OS X doesn't have a Hyper. This maps F19 to Control + Shift + Option + Command.</appendix>

        <identifier>usercustom.f19_to_hyper</identifier>

        <autogen>
            --KeyToKey--
            KeyCode::F19,

            KeyCode::COMMAND_L,
            ModifierFlag::OPTION_L | ModifierFlag::SHIFT_L | ModifierFlag::CONTROL_L
        </autogen>
    </item>
</root>

###Final step Get the latest version of Slate then run this command in the terminal from the folder where you cloned the repository. This will create a symlink in the user folder that Slate can read.

ln config.slate ~/.slate

Open Slate and enjoy!

##How to use This setup uses the following keyboard shortcuts.

Shortcut What it does
⇪ + A First trigger: Move and resize the window to the left side of the screen, Second trigger: Throw window to screen to the left
⇪ + S First trigger: Move and resize the window to the right side of the screen, Second trigger: Throw window to screen to the right
⇪ + Z Undo last action
⇪ + Space First trigger: Move and resize the window to screen center, Second trigger: Move and resize the window to full screen
⇪ + X Hide the window
⇪ + G Show the grid
⇪ + 1 Switch to "Mail"
⇪ + 2 Switch to "Google Chrome"
⇪ + 3 Switch to "Skype"
⇪ + 4 Switch to "Messages"
⇪ + Q Switch to "Sublime Text"
⇪ + W Switch to "Google Chrome" (Still waiting for a good way to switch to Canary)
⇪ + R Switch to "iTerm"
⇪ + E Switch to "SourceTree"
⇪ + Return Relaunch Slate

##Resources and read more A blog post by Tristan Hume was the main reason I started using Slate and the Caps Lock Hack was taken from a blog post by Tenshu.

I'm always interested in enhancing my workflow so feel free to fork and make pull requests!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.