X11 config : Some cosmetic

This commit is contained in:
MatMoul 2018-10-02 20:35:25 +02:00
parent f0894c9c39
commit f2f566e240
2 changed files with 4 additions and 2 deletions

View file

@ -3,7 +3,7 @@
pacman -Q libxkbcommon 2> /dev/null
if [ "$?" = "1" ]; then
if(confirm "libxkbcommon is required to use localectl.\nInstall libxkbcommon ?") then
if(confirm "libxkbcommon is required to use localectl.\n\nInstall libxkbcommon?") then
instpkg "libxkbcommon" ""
else
exit 1
@ -75,7 +75,9 @@ fi
if ( confirm "Run localectl set-x11-keymap $layout $model $variant $option ?") then
clear
localectl set-x11-keymap $layout $model $variant $option
pressanykey
fi
exit 0

View file

@ -6,7 +6,7 @@ options+=("Generate /etc/X11/xorg.conf.d/00-keyboard.conf" "")
options+=("Edit /etc/X11/xorg.conf.d/00-keyboard.conf" "")
defaultitem=""
sel=$(whiptail --backtitle "$apptitle" --title "Bash Configuration :" --menu "" --default-item "$defaultitem" --cancel-button "Back" 0 0 0 \
sel=$(whiptail --backtitle "$apptitle" --title "XOrg Configuration :" --menu "" --default-item "$defaultitem" --cancel-button "Back" 0 0 0 \
"${options[@]}" \
3>&1 1>&2 2>&3)
if [ ! "$?" = "0" ]; then