Git Product home page Git Product logo

hotkeymappings's Introduction

My preferred key bindings for both Linux and Windows.

Make use of caps lock, remap arrow keys to { h, j, k, l } and extra stuff.

For Linux and for Windows

Linux

Uses xmodmap to modify keys. Run xmodmap ~/.xmodmap to activate. Put this bash command in /etc/profile to run on startup. Run xcape -e 'Mode_switch=Escape' to change Caps-Lock to Escape.

Credits to https://unix.stackexchange.com/questions/414926/bind-capshjkl-to-arrow-keys-caps-to-esc.

Windows

AutoHotKey

AutoHotKey needs to be installed for Windows. The scripts can be found here.

Shortcut Output
CAPSLOCK + { i, j, k, l } { Up, Left, Down, Right }
CAPSLOCK + ALT + { i, j, k, l } CTRL + { Up, Left, Down, Right }
CAPSLOCK + CTRL + { i, j, k, l } ALT + { Up, Left, Down, Right }
CAPSLOCK + { u, o } { Home, End }
ALT + { i, k } { PageUp, PageDown }
CAPSLOCK + { y, h } { PageUp, PageDown }

Automatically start up

  1. Find the script file, select it, and press Control-C.
  2. Start Run and write shell:startup.
  3. Right click and choose Paste Shortcut. The shortcut to the script should now be in the Startup folder.

If you need to run it as administrator either make sure the scripts is set up to administrator or start Command Prompt as administrator and run the scripts within.

macOS

Karabiner-Elements

Karabiner-Elements needs to be installed for macOS. The karabiner.json file with the profile can be found here.

Shortcut Output
CAPSLOCK + { h, j, k, l } { Left, Down, Up, Right }
CAPSLOCK Escape when pressed alone, L-Ctrl when held down

hotkeymappings's People

Contributors

madslundt avatar taisang1996 avatar thehasanas avatar

Watchers

James Cloos avatar Andy Lam avatar

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.