2024-02-27 08:13:25 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
|
2024-03-06 11:12:50 +00:00
|
|
|
mkdir -p "${XDG_CONFIG_HOME:-$HOME/.config}/xkb/keymap"
|
2024-02-27 08:13:25 +00:00
|
|
|
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"
|
2024-12-17 11:30:15 +00:00
|
|
|
cp ./keymap "${XDG_CONFIG_HOME:-$HOME/.config}/xkb/keymap/acp"
|
|
|
|
|
|
|
|
# Compile a new keymap with:
|
|
|
|
# setxkbmap -layout acp -print | tee ./keymap
|
2024-03-06 11:12:50 +00:00
|
|
|
|
|
|
|
# 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
|