From f0894c9c39ccbab3a1ca12aaac4b26204a9f4ee8 Mon Sep 17 00:00:00 2001 From: MatMoul Date: Tue, 2 Oct 2018 20:28:48 +0200 Subject: [PATCH] X11 config : Ensure that libxkbcommon is installed --- config/xorg/keyboard | 10 ++++++++++ 1 file changed, 10 insertions(+) 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