Giter Site home page Giter Site logo

croutonremapkeys's Introduction

croutonremapkeys

A quick wrapper for using evdevremapkeys on the Pixelbook, though it may be useful on other chromebooks as well.

The Pixelbook contains an extra KEY_ASSISTANT key between left control and alt, where many keyboards have a Windows/Super key, as well as a KEY_CONTROLPANEL at the top right. X has a keycode limit of 255, far less than the 583 and 579 values our keys have. Meanwhile, remapping them in one of the usual methods loses their function in Chrome OS.

Hence this script: we use Philip Langdale's excellent evdevremapkeys daemon as a module and swap between two key remapping configurations depending on if Chrome OS or a (non-xiwi) X11 window is active, allowing us to use the Assistant and top-right Control Panel key in both environments.

By default, KEY_ASSISTANT is mapped to KEY_COMPOSE/Menu, chosen since it's often set to Hyper and Super is unavailable due to being Search. KEY_CONTROLPANEL is mapped to KP_DOT/KP_Delete, since recent thinkpad keyboards have delete in that spot, and no numpad means it's certainly free.

How to use

Install the requirements, then run it as root before X11 grabs the keyboard. Alternately, run the installation script.

Requirements

croutonremapkeys's People

Contributors

rickybrent 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.