refactor: Add GUI setup script and install graphical apps if GUI is detected

This commit is contained in:
Bram Kelchtermans 2024-07-07 13:58:32 +02:00
parent 86565625ff
commit c3c623f1d1
4 changed files with 22 additions and 0 deletions

1
gui/bluemail.sh Executable file
View File

@ -0,0 +1 @@
snap install bluemail

9
gui/setup.sh Executable file
View File

@ -0,0 +1,9 @@
apt install floorp
apt install snapd
apt install flatpak
chmod +x ./gui/spotify.sh
./gui/spotify.sh
chmod +x ./gui/bluemail.sh
./gui/bluemail.sh

4
gui/spotify.sh Executable file
View File

@ -0,0 +1,4 @@
curl -sS https://download.spotify.com/debian/pubkey_6224F9941A8AA6D1.gpg | sudo gpg --dearmor --yes -o /etc/apt/trusted.gpg.d/spotify.gpg
echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list
sudo apt-get update && sudo apt-get install spotify-client

View File

@ -51,3 +51,11 @@ install_node_if_no_gui() {
configure_terminal
configure_apt_cacher
install_node_if_no_gui
if [ -z "$XDG_CURRENT_DESKTOP" ]; then
echo "No GUI detected, not installing graphical apps..."
else
echo "GUI detected, let's install some graphical apps!"
sudo chmod +x ./gui/setup.sh
./gui/setup.sh
fi