X11 config : Ensure that libxkbcommon is installed

This commit is contained in:
MatMoul 2018-10-02 20:28:48 +02:00
parent 39e2f7243c
commit f0894c9c39

View file

@ -1,6 +1,16 @@
#!/bin/bash #!/bin/bash
. ./lib . ./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=() options=()
items=$(localectl list-x11-keymap-layouts) items=$(localectl list-x11-keymap-layouts)
for item in $items; do for item in $items; do