Giter Site home page Giter Site logo

keymap's Introduction

One kind of keyboard map

Purpose

When I started to learn and use Emacs and vim, I found the default keyboard map with default keybinds was painful for heavy typing. So I began to look for ideas about comfortable keymap, and remap something like this...

Simply, this keymap helps when you need to use left Ctrl and Esc very frequently, perhaps.

Main Idea

Command(Function of) Binded to Key(physical)
Escape Caps Lock
Caps Lock Esc
Left Ctrl Alt_L
Left Alt Win_L
Left Win Ctrl_L

Others

This Windows version configuration is tested by myself in MS Windows7. And Linux version configuration is tested in Arch Linux with Xfce4 DE.

Added 2016-11-10: Linux version has been tested several times under Debian with Xfce4. .Xmodmap was effective but these remapped keys happened to be lost after using for a random period. It seemed that system frequently reseted the complete keymap to default. According to some info source:

Note: xmodmap settings are reset by setxkbmap, which not only alters the alphanumeric keys to the values given in the map, but also resets all other keys to the startup default. So setting setxkbmap may be a better choice.

Added 2018: Especially, Debian has a specific configure file /etc/default/keyboard which could customize the keymap of console and Xorg both, relying on xkb rules. And it has config choices made inside already, which are named caps-swap-escape and l_ctrl-swap-l_win-swap-l_alt. It means some Debian users came up with the same idea as me and made the work done maybe long time ago...

In my computer, caps-swap-escape succedd but l_ctrl-swap-l_win-swap-l_alt failed until some specific system wide "apt upgrade". It worked well in my Debian 9, except for some software with GUI, for example Visual Studio Code.

Acknowledgement

Configuration in Windows is a regedit file, which can be generated easily by a no-fee software KeybMap V1.7.3. The original link was invalid and I can not find it any more.

Thanks to Silence(www.mympc.org), the author of KeybMap.

keymap's People

Contributors

rustyhu avatar

Watchers

James Cloos avatar  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.