X11 config : Some cosmetic
This commit is contained in:
parent
f0894c9c39
commit
f2f566e240
2 changed files with 4 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
pacman -Q libxkbcommon 2> /dev/null
|
pacman -Q libxkbcommon 2> /dev/null
|
||||||
if [ "$?" = "1" ]; then
|
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" ""
|
instpkg "libxkbcommon" ""
|
||||||
else
|
else
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -75,7 +75,9 @@ fi
|
||||||
|
|
||||||
|
|
||||||
if ( confirm "Run localectl set-x11-keymap $layout $model $variant $option ?") then
|
if ( confirm "Run localectl set-x11-keymap $layout $model $variant $option ?") then
|
||||||
|
clear
|
||||||
localectl set-x11-keymap $layout $model $variant $option
|
localectl set-x11-keymap $layout $model $variant $option
|
||||||
|
pressanykey
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -6,7 +6,7 @@ options+=("Generate /etc/X11/xorg.conf.d/00-keyboard.conf" "")
|
||||||
options+=("Edit /etc/X11/xorg.conf.d/00-keyboard.conf" "")
|
options+=("Edit /etc/X11/xorg.conf.d/00-keyboard.conf" "")
|
||||||
|
|
||||||
defaultitem=""
|
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[@]}" \
|
"${options[@]}" \
|
||||||
3>&1 1>&2 2>&3)
|
3>&1 1>&2 2>&3)
|
||||||
if [ ! "$?" = "0" ]; then
|
if [ ! "$?" = "0" ]; then
|
||||||
|
|
Loading…
Reference in a new issue