Added some conditions before installing xserver, gnome and gaming tools

This commit is contained in:
Kevin Veen-Birkenbach 2019-12-16 21:38:31 +01:00
parent e48d67f323
commit f2ee5341de

View File

@ -122,46 +122,57 @@ echo "Keep in mind to install the guest additions in the virtualized system. See
echo "Installing entertainment software..." echo "Installing entertainment software..."
echo "->Synchronizing audio software..." echo "->Synchronizing audio software..."
sudo pacman -S rhythmbox sudo pacman -S rhythmbox
echo "->Synchronizing games..." minimum_gaming_memory_kb="4000000"
sudo pacman --needed -S 0ad warzone2100 actual_memory_kb="$(grep MemTotal /proc/meminfo | awk '{print $2}')"
echo "->Synchronizing emulationstation..." if [ $actual_memory_kb -gt $minimum_gaming_memory_kb ]; then
yay -S emulationstation #retroarch joyutils jstest-gtk-git echo "->Synchronizing games..."
yay -S libretro-snes9x-next-git libretro-quicknes-git libretro-fceumm-git libretro-prosystem-git libretro-gambatte-git libretro-mgba-git sudo pacman --needed -S 0ad warzone2100
echo "-->Installing themes..." echo "->Synchronizing emulationstation..."
mkdir .emulationstation/themes yay -S emulationstation #retroarch joyutils jstest-gtk-git
git clone https://github.com/RetroPie/es-theme-carbon .emulationstation/themes/carbon yay -S libretro-snes9x-next-git libretro-quicknes-git libretro-fceumm-git libretro-prosystem-git libretro-gambatte-git libretro-mgba-git
echo "More game recomendations you will find here: https://wiki.archlinux.org/index.php/List_of_games..." echo "-->Installing themes..."
echo "Synchronizing gui tools..." mkdir .emulationstation/themes
sudo pacman --needed -S gnome-shell-extensions gnome-terminal xbindkeys git clone https://github.com/RetroPie/es-theme-carbon .emulationstation/themes/carbon
echo "->Setting up key bindings..." echo "More game recomendations you will find here: https://wiki.archlinux.org/index.php/List_of_games..."
echo "" >> "$HOME/.xbindkeysrc" fi
echo "\"gnome-terminal -e '/bin/bash $SCRIPT_PATH/import-data-from-system.sh'\"" >> "$HOME/.xbindkeysrc" if [ "$XDG_SESSION_TYPE" == "x11" ]; then
echo " control+alt+s" >> "$HOME/.xbindkeysrc" echo "->Synchronizing xserver tools..."
xbindkeys --poll-rc sudo pacman --needed -S xbindkeys
echo "->Setting up dash favourites..." echo "-->Setting up key bindings..."
gsettings set org.gnome.shell favorite-apps "['org.gnome.Nautilus.desktop', echo "" >> "$HOME/.xbindkeysrc"
'org.gnome.Terminal.desktop', echo "\"gnome-terminal -e '/bin/bash $SCRIPT_PATH/import-data-from-system.sh'\"" >> "$HOME/.xbindkeysrc"
'org.keepassxc.KeePassXC.desktop', echo " control+alt+s" >> "$HOME/.xbindkeysrc"
'firefox.desktop', xbindkeys --poll-rc
'chromium.desktop', fi
'atom.desktop', if [ "$DESKTOP_SESSION" == "gnome" ]; then
'arduino.desktop', echo "->Synchronizing gnome tools..."
'eclipse.desktop', sudo pacman --needed -S gnome-shell-extensions gnome-terminal
'vlc.desktop', echo "-->Setting up gnome specific software..."
'gimp.desktop', echo "-->Setting up dash favourites..."
'blender.desktop', gsettings set org.gnome.shell favorite-apps "['org.gnome.Nautilus.desktop',
'rhythmbox.desktop', 'org.gnome.Terminal.desktop',
'org.gnome.Screenshot.desktop']" 'org.keepassxc.KeePassXC.desktop',
echo "->Install GNOME extensions..." 'firefox.desktop',
echo "-->Install <<NASA picture of the day>>..." 'chromium.desktop',
git clone https://github.com/Elinvention/gnome-shell-extension-nasa-apod.git "$HOME/.local/share/gnome-shell/extensions/nasa_apod@elinvention.ovh" 'atom.desktop',
gnome-extensions enable nasa_apod@elinvention.ovh 'arduino.desktop',
echo "-->Install <<Open Weather>>..." 'eclipse.desktop',
git clone https://gitlab.com/jenslody/gnome-shell-extension-openweather "$HOME/.local/share/gnome-shell/extensions/openweather-extension@jenslody.de" 'vlc.desktop',
gnome-extensions enable openweather-extension@jenslody.de 'gimp.desktop',
echo "-->Install <<Dash to Panel>>..." 'blender.desktop',
git clone https://github.com/home-sweet-gnome/dash-to-panel "$HOME/.local/share/gnome-shell/extensions/openweather-extension@dash-to-panel@jderose9.github.com" 'rhythmbox.desktop',
gnome-extensions enable dash-to-panel@jderose9.github.com 'org.gnome.Screenshot.desktop']"
echo "Deaktivating <<Dash to Dock>>" echo "-->Install GNOME extensions..."
gnome-extensions disable dash-to-dock@micxgx.gmail.com echo "--->Install <<NASA picture of the day>>..."
git clone https://github.com/Elinvention/gnome-shell-extension-nasa-apod.git "$HOME/.local/share/gnome-shell/extensions/nasa_apod@elinvention.ovh"
gnome-extensions enable nasa_apod@elinvention.ovh
echo "--->Install <<Open Weather>>..."
git clone https://gitlab.com/jenslody/gnome-shell-extension-openweather "$HOME/.local/share/gnome-shell/extensions/openweather-extension@jenslody.de"
gnome-extensions enable openweather-extension@jenslody.de
echo "--->Install <<Dash to Panel>>..."
git clone https://github.com/home-sweet-gnome/dash-to-panel "$HOME/.local/share/gnome-shell/extensions/openweather-extension@dash-to-panel@jderose9.github.com"
gnome-extensions enable dash-to-panel@jderose9.github.com
echo "--->Deaktivating <<Dash to Dock>>"
gnome-extensions disable dash-to-dock@micxgx.gmail.com
fi
echo "More software recomendations you will find here: https://wiki.archlinux.org/index.php/list_of_applications" echo "More software recomendations you will find here: https://wiki.archlinux.org/index.php/list_of_applications"