updated dotfiles, fixed install scripts, added missing packages
This commit is contained in:
Executable
+57
@@ -0,0 +1,57 @@
|
||||
#!/bin/bash
|
||||
# run_once_40-install-apps.sh
|
||||
# Desktop applications. Skipped on server.
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
SYS="{{ .system | default "desktop" }}"
|
||||
GAMING="{{ .gaming | default false }}"
|
||||
DISTRO_ID="{{ .chezmoi.osRelease.id | default "" }}"
|
||||
|
||||
if [ "$SYS" = "server" ]; then
|
||||
echo ">>> [apps] system=server, skipping"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
case "$DISTRO_ID" in
|
||||
arch)
|
||||
echo ">>> [apps] arch, system=$SYS"
|
||||
# System packages
|
||||
echo ">>> [apps] installing packages"
|
||||
sudo pacman -Syu --noconfirm --needed \
|
||||
libreoffice-fresh nextcloud-client \
|
||||
gvfs gvfs-mtp gvfs-smb thunar tumbler lshw \
|
||||
mpv nvtop pavucontrol thunderbird firefox yt-dlp \
|
||||
feishin
|
||||
|
||||
# AUR packages
|
||||
echo ">>> [apps] installing AUR packages"
|
||||
yay -Sy --noconfirm --needed \
|
||||
appimagelauncher rustdesk vesktop-git
|
||||
|
||||
# Gaming packages
|
||||
if [ "$GAMING" = "true" ]; then
|
||||
echo ">>> [apps] installing gaming packages"
|
||||
sudo pacman -Syu --noconfirm --needed \
|
||||
steam
|
||||
|
||||
yay -Sy --noconfirm --needed \
|
||||
heroic-games-launcher-bin
|
||||
fi
|
||||
;;
|
||||
|
||||
ubuntu)
|
||||
echo ">>> [apps] ubuntu, system=$SYS"
|
||||
sudo apt-get install -y \
|
||||
libreoffice nextcloud-desktop \
|
||||
mpv nvtop pavucontrol thunderbird firefox yt-dlp
|
||||
echo ">>> [apps] TODO: install via Flatpak/Snap — feishin, ..."
|
||||
;;
|
||||
|
||||
*)
|
||||
echo ">>> [apps] unsupported distro: ${DISTRO_ID:-unknown}, skipping"
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
echo ">>> [apps] done"
|
||||
Reference in New Issue
Block a user