Slim RHEL packages and Gnome setup

This commit is contained in:
Anthony Rose 2021-10-02 22:36:32 +01:00
parent 827f20c41f
commit dac594ae78
3 changed files with 2 additions and 13 deletions

View file

@ -43,7 +43,6 @@
- lldb
- mc
- nmap
- nodejs
- openssh-server
- python38
- python38-psutil

View file

@ -20,7 +20,6 @@
state: present
vars:
packages:
- emacs
- git-gui
- liberation-fonts
- vim-X11

View file

@ -11,21 +11,12 @@ set_favorites_bar () {
firefox=firefox
fi
gsettings set org.gnome.shell favorite-apps "['org.gnome.Terminal.desktop', 'org.gnome.Nautilus.desktop', '$firefox.desktop', 'chromium.desktop', 'codium.desktop']"
gsettings set org.gnome.shell favorite-apps "['org.gnome.Terminal.desktop', 'org.gnome.Nautilus.desktop', '$firefox.desktop', 'chromium.desktop']"
}
set_favorites_bar
set_keyboard_and_language () {
local en="('xkb', 'ca+eng')"
local fr="('xkb', 'ca+multix')"
local layouts
if [ "$(echo $LANG | sed 's/_.*//')" = "fr" ]
then
layouts="[$fr, $en]"
else
layouts="[$en]"
fi
gsettings set org.gnome.desktop.input-sources sources "$layouts"
gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'us')]"
gsettings set org.gnome.desktop.input-sources xkb-options "['lv3:ralt_switch', 'compose:caps', 'shift:both_capslock']"
}
set_keyboard_and_language