1
0
Fork 0
forked from RP1/RaveOS-arch

locale grep try

This commit is contained in:
RP1 2025-01-07 22:58:08 +01:00
parent 06d162e3bb
commit 78182d5a8c

View file

@ -18,7 +18,7 @@ yellow=$(tput setaf 3) # ${yellow}
# Variables - Credit Lordify
CPU=$(lscpu | grep "AMD" -c)
nVidia=$(lspci -P | grep "NVIDIA" -c)
Locale=$(echo $LANG)
Locale=$(locale | grep "hu_HU" -c)
set -e
@ -103,13 +103,13 @@ if [[ $nVidia -gt 0 ]]; then
sudo mkinitcpio -P
fi
#gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'hu')]"
# Dconf option
if [[ "$Locale" = "hu_HU.UTF8" ]]; then
#dconf load / < raveui-hu
#gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'hu')]"
dconf load / < raveui-hu
else
#dconf load / < raveui-eng
dconf load / < raveui-eng
fi
# RaveOS Cosmetics
@ -142,8 +142,6 @@ SystemAccount=false" | sudo tee /var/lib/AccountsService/users/$USER
sudo sed -i 's/#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
sudo sed -i 's/#hu_HU.UTF-8 UTF-8/hu_HU.UTF-8 UTF-8/' /etc/locale.gen
sudo locale-gen
dconf load / < raveui-hu
set-gdm-theme set Yaru-purple-dark /usr/share/backgrounds/raveos-bg.png
# Adding Custom rave command