refactor: Add GUI setup script and install graphical apps if GUI is detected
This commit is contained in:
		
							
								
								
									
										1
									
								
								gui/bluemail.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										1
									
								
								gui/bluemail.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1 @@ | ||||
| snap install bluemail | ||||
							
								
								
									
										9
									
								
								gui/setup.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										9
									
								
								gui/setup.sh
									
									
									
									
									
										Executable 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
									
								
							
							
						
						
									
										4
									
								
								gui/spotify.sh
									
									
									
									
									
										Executable 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 | ||||
							
								
								
									
										8
									
								
								setup.sh
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								setup.sh
									
									
									
									
									
								
							| @@ -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 | ||||
		Reference in New Issue
	
	Block a user