Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 258522 - sys-apps/openrc: Feature addition: Switching Esc and Caps lock
Summary: sys-apps/openrc: Feature addition: Switching Esc and Caps lock
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Roy Marples
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-10 23:51 UTC by Roland Leißa
Modified: 2009-02-11 02:47 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roland Leißa 2009-02-10 23:51:27 UTC
This small addition adds the nice option to switch Esc and Caps lock:

Add this to /etc/conf.d/keymaps

# Should Caps lock and Esc be switched?
switch_caps_lock_and_esc="yes"

Add this to /etc/init.d/keymaps in start()

    if yesno ${switch_caps_lock_and_esc}; then
        ebegin "Switching Caps lock and Esc keys"
        setkeycodes 0x3a 1
        setkeycodes 0xba 1
        setkeycodes 0x01 58
        setkeycodes 0x81 58
        eend 0
    fi

This is _really_ useful if you like Vi as an editor. 

However I don't know whether this works for non x86/amd64 keyboards.


Reproducible: Always

Steps to Reproduce:
Comment 1 SpanKY gentoo-dev 2009-02-11 02:47:24 UTC
make your own keymap and select that with the keymaps script