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 - lldb
- mc - mc
- nmap - nmap
- nodejs
- openssh-server - openssh-server
- python38 - python38
- python38-psutil - python38-psutil

View file

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

View file

@ -11,21 +11,12 @@ set_favorites_bar () {
firefox=firefox firefox=firefox
fi 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_favorites_bar
set_keyboard_and_language () { set_keyboard_and_language () {
local en="('xkb', 'ca+eng')" gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'us')]"
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 xkb-options "['lv3:ralt_switch', 'compose:caps', 'shift:both_capslock']" gsettings set org.gnome.desktop.input-sources xkb-options "['lv3:ralt_switch', 'compose:caps', 'shift:both_capslock']"
} }
set_keyboard_and_language set_keyboard_and_language