scripts/install.sh: prepare split between i3 and sway desktops

This commit is contained in:
Frieder Schlesier 2021-10-30 10:08:00 +02:00
parent 8c977bc737
commit 1eb000772b
1 changed files with 60 additions and 28 deletions

View File

@ -190,6 +190,56 @@ install_latex() {
--no-install-recommends
}
install_workstation_apps() {
DEBIAN_FRONTEND=noninteractive
# TODO add non-free to apt/sources.list
apt update
apt install -y \
alsa-utils \
aspell \
aspell-de \
aspell-en \
cups-browsed \
emacs \
firefox-esr \
firmware-iwlwifi \
firmware-linux-nonfree \
firmware-realtek \
fonts-font-awesome \
fonts-noto \
fonts-noto-cjk \
gimp \
keepassxc \
libnotify-bin \
libnotify-dev \
libreoffice-calc \
libreoffice-impress \
libreoffice-l10n-de \
libreoffice-l10n-en-gb \
libreoffice-writer \
ntfs-3g \
nmap \
pulseaudio \
slim \
thunderbird \
thunderbird-l10n-de \
thunderbird-l10n-en-gb \
vlc \
--no-install-recommends
TARGET="/home/$USERNAME/.emacs.d"
git clone https://github.com/syl20bnr/spacemacs "${TARGET}"
# rm -rf "${TARGET}"/private/snippets
# git clone https://github.com/AndreaCrotti/yasnippet-snippets "${TARGET}"/private/yas-snippets
# ln -s "${TARGET}"/private/yas-snips/snippets "${TARGET}"/private/snippets/
}
install_sway() {
echo ".... TODO ;-) ..."
}
install_i3() {
echo "update and installing i3wm and some tools..."
@ -206,52 +256,25 @@ install_i3() {
DEBIAN_FRONTEND=noninteractive
# TODO add non-free to apt/sources.list
apt update
apt install -y \
alsa-utils \
aspell \
aspell-de \
aspell-en \
cups-browsed \
emacs \
feh \
firefox-esr \
firmware-iwlwifi \
firmware-linux-nonfree \
firmware-realtek \
fonts-font-awesome \
fonts-noto \
fonts-noto-cjk \
fswebcam \
gimp \
i3 \
i3lock \
i3lock-fancy \
i3status \
keepassxc \
libnotify-bin \
libnotify-dev \
libreoffice-calc \
libreoffice-impress \
libreoffice-l10n-de \
libreoffice-l10n-en-gb \
libreoffice-writer \
network-manager-gnome \
network-manager-vpnc \
network-manager-vpnc-gnome \
notify-osd \
ntfs-3g \
nmap \
pulseaudio \
remmina \
rxvt-unicode-256color \
scrot \
shotwell \
slim \
thunderbird \
thunderbird-l10n-de \
thunderbird-l10n-en-gb \
vlc \
xorg \
--no-install-recommends
@ -416,11 +439,15 @@ install_golang() {
)
}
install_rust() {
echo ".... TODO ! rustup.sh ... "
}
main() {
local cmd=$1
if [[ -z "$cmd" ]]; then
echo "Usage: \n base (includes docker+compose)| desktop | server | dotfiles | vscode | latex | update-docker | go"
echo "Usage: \n base (incl docker+compose)| desktop | server | dotfiles | vscode | latex | update-docker | go | rust"
fi
case "$cmd" in
@ -441,7 +468,9 @@ main() {
base_applications
install_docker
install_compose
install_syncthing
install_i3
install_workstation_apps
if [ -f "./get_private_stuff.sh" ]; then
source get_private_stuff.sh
fi
@ -459,6 +488,9 @@ main() {
go)
install_golang
;;
rust)
install_rust
;;
esac
}