From dac594ae78b9363a6c0a25125c16bebdb8945c2a Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Sat, 2 Oct 2021 22:36:32 +0100 Subject: [PATCH] Slim RHEL packages and Gnome setup --- roles/el/tasks/packages-cli.yml | 1 - roles/el/tasks/packages-gui.yml | 1 - roles/home-gui/files/gnome-setup.sh | 13 ++----------- 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/roles/el/tasks/packages-cli.yml b/roles/el/tasks/packages-cli.yml index 052ec6b..d476a22 100644 --- a/roles/el/tasks/packages-cli.yml +++ b/roles/el/tasks/packages-cli.yml @@ -43,7 +43,6 @@ - lldb - mc - nmap - - nodejs - openssh-server - python38 - python38-psutil diff --git a/roles/el/tasks/packages-gui.yml b/roles/el/tasks/packages-gui.yml index 4e76a66..0d20981 100644 --- a/roles/el/tasks/packages-gui.yml +++ b/roles/el/tasks/packages-gui.yml @@ -20,7 +20,6 @@ state: present vars: packages: - - emacs - git-gui - liberation-fonts - vim-X11 diff --git a/roles/home-gui/files/gnome-setup.sh b/roles/home-gui/files/gnome-setup.sh index 065f4aa..6734919 100644 --- a/roles/home-gui/files/gnome-setup.sh +++ b/roles/home-gui/files/gnome-setup.sh @@ -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