-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall-applications.sh
More file actions
executable file
·45 lines (40 loc) · 976 Bytes
/
install-applications.sh
File metadata and controls
executable file
·45 lines (40 loc) · 976 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
apps="neofetch snapd texlive texstudio python3 python3-pip vim pwgen"
snaps=("spotify" "atom --classic" "slack --classic")
dash="======"
printf "This script will update and upgrade apt and install the following:\n\n"
printf "apt:\n$dash\n"
printf "$apps\n\n"
printf "snaps:\n$dash\n"
state="echo"
snapit="sudo snap install "
function floop() {
for ((i=0; i<${#snaps[@]}; i++));
do
eval "$1 ${snaps[i]}"
done
}
floop "$state"
printf "\nContinue? [Y/n]"
read RESPONSE
case $RESPONSE in
[nN])
exit
;;
*)
printf "\n\nUpdating and upgrading...\n\n"
sudo apt update && sudo apt upgrade
sudo apt install $apps
floop "$snapit"
printf "\nDone!\n"
;;
esac
#TODO
# implement exit codes and print message regarding if successful or not
# check if snapd exists
#
# Varia
## speedreading
# https://github.com/xypiie/spread0r flashes text
# https://poppler.freedesktop.org/ pdf to txt converter, requires
# cmake