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-03-06 11:12:50 +00:00
|
|
|
setxkbmap -layout acp -print | tee "${XDG_CONFIG_HOME:-$HOME/.config}/xkb/keymap/acp"
|
|
|
|
|
|
|
|
# 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
|