kbd: Remove script and keymap

Use 'emacs' or 'emacs2' default keymap to reverse Caps-Lock and Ctrl.
master
Pierre Neidhardt 2016-10-16 17:28:40 +05:30
parent 0b99ae038d
commit e430869542
2 changed files with 0 additions and 99 deletions

View File

@ -1,31 +0,0 @@
#!/bin/sh
## Install all map files in .kbd folder
if [ $(id -u) -ne 0 ]; then
echo "You must be root to run this script."
exit
fi
_install ()
{
FULLPATH="$(realpath "$1")"
NAME="${FULLPATH##*/}"
BUF="${FULLPATH%/*}"
CAT="${BUF##*/}"
BUF="${BUF%/*}"
CAT="${BUF##*/}/$CAT"
umask 022
echo "Installing [$FULLPATH] to [/usr/share/kbd/keymaps/$CAT/$NAME.gz]"
gzip -c "$FULLPATH" > "/usr/share/kbd/keymaps/$CAT/$NAME.gz"
}
SOURCE_PATH="$(realpath "$0")"
SOURCE_PATH="${SOURCE_PATH%/*}"
while IFS= read -r i; do
_install "$i"
done<<EOF
$(find "$SOURCE_PATH" -iname '*.map' -type f)
EOF

View File

@ -1,68 +0,0 @@
# -*- mode:conf -*-
################################################################################
## US qwerty extended keymap
## See layout in /.xkb/symbols/usex
################################################################################
## Use showkey in a TTY to get the keycode.
# Keymaps
# us: keymaps 0-2,4-6,8-9,12
# fr-latin1: keymaps 0-2,4,6,8,12
# 0. none
# 1. Shift
# 2. AltGr
# 3. Shift+AltGr
# 4. Control
# 5. Shift+Control
# 6. AltGr+Control
# 7. Shift+AltGr+Control
# 8. Alt
# 9. Shift+Alt
# 10. AltGr+Alt
# 11. Shift+AltGr+Alt
# 12. Control+Alt
# 13. Shift+Control+Alt
# 14. AltGr+Control+Alt
# 15. Shift+AltGr+Control+Alt
keymaps 0-2,4-6,8-9,12
## Columns
# 0 = none
# 1 = Shift
# 2 = AltGr
# 3 = Shift+AltGr
# 4 = Alt
# 5 = Alt+Shift
# ...
# modifier weight
#
# Shift 1
# AltGr 2
# Control 4
# Alt 8
# ShiftL 16
# ShiftR 32
# CtrlL 64
# CtrlR 128
# CapsShift 256
## May be needed for emacs
alt_is_meta
include "qwerty-layout"
include "linux-with-alt-and-altgr"
# include "compose.latin1"
# include "euro2.map"
strings as usual
# string F13 = "\033[[d"
# string F14 = "\033[0d"
keycode 58 = Control
keycode 29 = Caps_Lock
# Left and right super
keycode 125 = Decr_Console
keycode 126 = Incr_Console
# Menu
keycode 127 = Last_Console