mirror of
https://github.com/kevinveenbirkenbach/linux-image-manager.git
synced 2024-11-10 01:51:03 +01:00
Optimized virtualbox and gnome installation
This commit is contained in:
parent
779be23317
commit
504d24a7fe
@ -79,7 +79,7 @@ if pacman -Qi "docker" > /dev/null ; then
|
|||||||
sudo systemctl enable docker --now || error "Failed."
|
sudo systemctl enable docker --now || error "Failed."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if pacman -Qi "docker" > /dev/null ; then
|
if [ ! $(pacman -Qi "virtualbox") ] ; then
|
||||||
info "Setting up virtualbox..." &&
|
info "Setting up virtualbox..." &&
|
||||||
pamac install virtualbox $(pacman -Qsq "^linux" | grep "^linux[0-9]*[-rt]*$" | awk '{print $1"-virtualbox-host-modules"}' ORS=' ') &&
|
pamac install virtualbox $(pacman -Qsq "^linux" | grep "^linux[0-9]*[-rt]*$" | awk '{print $1"-virtualbox-host-modules"}' ORS=' ') &&
|
||||||
sudo vboxreload &&
|
sudo vboxreload &&
|
||||||
@ -98,6 +98,15 @@ if [ "$XDG_SESSION_TYPE" == "x11" ]; then
|
|||||||
xbindkeys --poll-rc || error "Failed."
|
xbindkeys --poll-rc || error "Failed."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
install_gnome_extension(){
|
||||||
|
extension_folder="$HOME/.local/share/gnome-shell/extensions/$1"
|
||||||
|
if [ ! -d "$extension_folder" ];then
|
||||||
|
info "Install gnome extension \"$1\"..." &&
|
||||||
|
git clone $2 "$extension_folder" || error "Failed."
|
||||||
|
fi
|
||||||
|
gnome-extensions enable $1 || "Failed."
|
||||||
|
}
|
||||||
|
|
||||||
if [ "$DESKTOP_SESSION" == "gnome" ]; then
|
if [ "$DESKTOP_SESSION" == "gnome" ]; then
|
||||||
info "Synchronizing gnome tools..." &&
|
info "Synchronizing gnome tools..." &&
|
||||||
sudo pacman --needed -S gnome-shell-extensions gnome-terminal &&
|
sudo pacman --needed -S gnome-shell-extensions gnome-terminal &&
|
||||||
@ -114,18 +123,12 @@ if [ "$DESKTOP_SESSION" == "gnome" ]; then
|
|||||||
'gimp.desktop',
|
'gimp.desktop',
|
||||||
'blender.desktop',
|
'blender.desktop',
|
||||||
'rhythmbox.desktop',
|
'rhythmbox.desktop',
|
||||||
'org.gnome.Screenshot.desktop']" &&
|
'org.gnome.Screenshot.desktop']" || error "Failed."
|
||||||
|
|
||||||
info "Install GNOME extensions..." &&
|
info "Install GNOME extensions..." &&
|
||||||
info "Install \"NASA picture of the day\"..." &&
|
install_gnome_extension "nasa_apod@elinvention.ovh" "https://github.com/Elinvention/gnome-shell-extension-nasa-apod.git"
|
||||||
git clone https://github.com/Elinvention/gnome-shell-extension-nasa-apod.git "$HOME/.local/share/gnome-shell/extensions/nasa_apod@elinvention.ovh" &&
|
install_gnome_extension "dash-to-panel@jderose9.github.com" "https://github.com/home-sweet-gnome/dash-to-panel"
|
||||||
gnome-extensions enable nasa_apod@elinvention.ovh &&
|
info "Deactivating \"Dash to Dock\"..." &&
|
||||||
info "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 &&
|
|
||||||
info "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 &&
|
|
||||||
info "Deaktivating \"Dash to Dock\"" &&
|
|
||||||
gnome-extensions disable dash-to-dock@micxgx.gmail.com || error "Failed."
|
gnome-extensions disable dash-to-dock@micxgx.gmail.com || error "Failed."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user