Code Monkey home page Code Monkey logo

x1carbon-xkb-geometry's Introduction

ThinkPad X1 Carbon XKB Geometry

Demo screenshot with us layout

Here is my XKB geometry file for my Lenovo ThinkPad X1 Carbon Gen 6 with us keyboard layout. Note that all measurements are taken by eye. Feel free to make a pull request for improving the layout, including other X1 Carbon generations or including other country layouts.

The geometry features a CapsLock indicator.

Setup

As I understand, XKB configuration can be quite different on different operating systems. Here's what I did on Ubuntu 19.10 in order to get it running:

  1. Copy the x1carbon file to /usr/share/X11/xkb/geometry/

  2. Open /usr/share/X11/xkb/rules/evdev (you'll need sudo!)

    Find the section starting with

    ! model = geometry
    

    and add the following line somewhere in this section:

      x1carbon = x1carbon
    
  3. You can test the geometry by setting your model for the current X session with:

    setxkbmap -model "x1carbon"
    

    For viewing the geometry, I just click on the language selector dropdown at the main menu panel and select Show Keyboard Layout. See the above screenshot as an example of what I get there. Note that I tried setting the geometry directly, but this would not work for me for some reason.

  4. You can make the setting persistent by creating and X config file in /usr/share/X11/xorg.conf.d/ with the specific settings. Here's the content of my config file 20-keyboard-x1carbon.conf:

    Section "InputClass"
        Identifier "keyboard defaults"
        MatchIsKeyboard "on"
    
        Option "XkbModel" "x1carbon"
        Option "XkbLayout" "us,de"
        Option "XKbOptions" ""
    EndSection
    

    Note that you will also have to specify the layouts you want to include. You can have a look at the ArchLinux Wiki for XKB for an overview about setting other possible options here.

x1carbon-xkb-geometry's People

Contributors

pfaion avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

dlitz coldter

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.