From e79bba6bcca1857882235d72f827861a047b3a1f Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Thu, 30 Jun 2022 10:26:34 +0100 Subject: [PATCH] Use CMS when in a French locale --- roles/home-gui/files/gnome-setup.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/roles/home-gui/files/gnome-setup.sh b/roles/home-gui/files/gnome-setup.sh index 9383da0..8f043e1 100644 --- a/roles/home-gui/files/gnome-setup.sh +++ b/roles/home-gui/files/gnome-setup.sh @@ -21,7 +21,12 @@ set_favorites_bar set_keyboard_and_language () { gsettings set org.gnome.desktop.input-sources show-all-sources true - gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'us'), ('xkb', 'us+intl')]" + if [ x$LANG == xfr_FR.UTF-8 ] + then + gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'ca+multix'), ('xkb', 'us')]" + else + gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'us')]" + fi gsettings set org.gnome.desktop.input-sources xkb-options "['lv3:ralt_switch', 'compose:caps', 'nbsp:level3n', 'shift:both_capslock']" gsettings set org.gnome.desktop.wm.keybindings switch-applications "['Tab']" gsettings set org.gnome.desktop.wm.keybindings switch-applications-backward "['Tab']"