16 lines
704 B
Bash
Executable file
16 lines
704 B
Bash
Executable file
#!/bin/sh
|
|
set -e
|
|
|
|
mkdir -p "${XDG_CONFIG_HOME:-$HOME/.config}/xkb/keymap"
|
|
mkdir -p "${XDG_CONFIG_HOME:-$HOME/.config}/xkb/rules"
|
|
mkdir -p "${XDG_CONFIG_HOME:-$HOME/.config}/xkb/symbols"
|
|
cp ./rules/evdev "${XDG_CONFIG_HOME:-$HOME/.config}/xkb/rules/evdev"
|
|
cp ./rules/evdev.xml "${XDG_CONFIG_HOME:-$HOME/.config}/xkb/rules/evdev.xml"
|
|
cp ./symbols/acp "${XDG_CONFIG_HOME:-$HOME/.config}/xkb/symbols/acp"
|
|
cp ./keymap "${XDG_CONFIG_HOME:-$HOME/.config}/xkb/keymap/acp"
|
|
|
|
# Compile a new keymap with:
|
|
# setxkbmap -layout acp -print | tee ./keymap
|
|
|
|
# Load the layout in X11 if needed with:
|
|
# xkbcomp -w0 -I"${XDG_CONFIG_HOME:-$HOME/.config}/xkb" -R"${XDG_CONFIG_HOME:-$HOME/.config}/xkb" keymap/acp $DISPLAY
|