diff --git a/config/xorg/keyboard b/config/xorg/keyboard index b6446f9..d0f12fb 100644 --- a/config/xorg/keyboard +++ b/config/xorg/keyboard @@ -1,6 +1,16 @@ #!/bin/bash . ./lib +pacman -Q libxkbcommon 2> /dev/null +if [ "$?" = "1" ]; then + if(confirm "libxkbcommon is required to use localectl.\nInstall libxkbcommon ?") then + instpkg "libxkbcommon" "" + else + exit 1 + fi +fi + + options=() items=$(localectl list-x11-keymap-layouts) for item in $items; do