Git Product home page Git Product logo

keybindings's Introduction

My preferred key bindings for both Linux and Windows.

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

For Linux and for Windows

Linux

AutoKey

AutoKey needs to be installed for Linux. This can be downloaded within Ubuntu package manager. The scripts can be found here.

At first caps lock has to be changed to function as the hyper key. This can be done with Gnome Tweak Tool.

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

Move the scripts to the directory ~/.config/autokey/data/.

Terminator

Terminator is used as a terminal and scripts can be found here.

Shortcut Output
CAPSLOCK + CTRL + Alt { k, l } Create new tab to the { bottom, right }
CAPSLOCK + CTRL { i, j, k, l } Focus the tab to the { top, left, bottom, right }
CAPSLOCK + ALT + SHIFT + { i, j, k, l } Increase/Decrease tab size to the { top, left, bottom, right }
CTRL + Shift + w Close tab
CTRL + Shift + c Copy text
CTRL + Shift + v Paste text
ALT + { i, k } { PageUp, PageDown }

Move the script to the directory ~/.config/terminator/.

Tilda

Tilda is used as a dropdown terminal and the scripts can be found here.

This adds the terminal to the op of the screen by pressing CapsLock + T.

Move the script to the directory ~/.config/tilda/.

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.

CMDer

Shortcut Output
CAPSLOCK + CTRL + Alt { k, l } Create new tab to the { bottom, right }
CAPSLOCK + CTRL { i, j, k, l } Focus the tab to the { top, left, bottom, right }
CTRL + Shift + w Close tab
CTRL + Shift + c Copy text
CTRL + Shift + v Paste text
ALT + { i, k } { PageUp, PageDown }

Download font FiraCode and FlottFlott

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 + { i, j, k, l } { Up, Left, Down, Right }
CAPSLOCK + ⌘ COMMAND + { i, j, k, l, Backspace, Delete } ⌥ OPTION + { Up, Left, Down, Right, Backspace, Delete }
CAPSLOCK + ⌥ OPTION + { i, j, k, l, Backspace, Delete } ⌘ COMMAND + { Up, Left, Down, Right, Backspace, Delete }
CAPSLOCK + { u, o } { Home, End } (*)
SHIFT + Backspace Delete
  • Home and End aren't very useful on macOS. Similar functionality can be achieved with OPTION + Up (start of line), and OPTION + Down (end of line). Note that those would be COMMAND + Up and COMMAND + Down with the provided bindings.

Adding to Karabiner

⚠️ If you already use Karabiner: follow the advanced steps to avoid loss of current settings.

Copy karabiner.json to your Karabiner config directory. This will result in Karabiner reading two profiles; 'Default macOS' and 'CAPSLOCK + IJKL'. Select 'CAPSLOCK + IJKL' and you are all set!

Advanced: copying only the modifications

If you already have your own profile and you only want to add the complex modifications, follow these steps.

In karabiner.json locate the profile 'CAPSLOCK + IJKL' and copy all the desired modifications from the 'rules' section (lines 153 to 844).

keybindings's People

Contributors

madslundt avatar taisang1996 avatar thehasanas 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.