Add keymap file to install script

This commit is contained in:
Anthony Rose 2024-03-06 11:12:50 +00:00
parent ba51b3ac41
commit 1e45569cf3

View file

@ -1,8 +1,13 @@
#!/bin/sh #!/bin/sh
set -e 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/rules"
mkdir -p "${XDG_CONFIG_HOME:-$HOME/.config}/xkb/symbols" mkdir -p "${XDG_CONFIG_HOME:-$HOME/.config}/xkb/symbols"
cp ./rules/evdev "${XDG_CONFIG_HOME:-$HOME/.config}/xkb/rules/evdev" 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 ./rules/evdev.xml "${XDG_CONFIG_HOME:-$HOME/.config}/xkb/rules/evdev.xml"
cp ./symbols/acp "${XDG_CONFIG_HOME:-$HOME/.config}/xkb/symbols/acp" cp ./symbols/acp "${XDG_CONFIG_HOME:-$HOME/.config}/xkb/symbols/acp"
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