From 1e45569cf3fa833e56d27110cec6b8ef3a1d9e56 Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Wed, 6 Mar 2024 11:12:50 +0000 Subject: [PATCH] Add keymap file to install script --- xkb/install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xkb/install.sh b/xkb/install.sh index 2eede95..34eea2c 100755 --- a/xkb/install.sh +++ b/xkb/install.sh @@ -1,8 +1,13 @@ #!/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" +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