61 lines
2.0 KiB
Cheetah
Executable File
61 lines
2.0 KiB
Cheetah
Executable File
#!/bin/bash
|
|
# run_once_20-install-gui.sh
|
|
# Hyprland and other DE/shell packages
|
|
|
|
set -euo pipefail
|
|
|
|
SYS="{{ .system | default "desktop" }}"
|
|
DISTRO_ID="{{ .chezmoi.osRelease.id | default "" }}"
|
|
|
|
if [ "$SYS" = "server" ]; then
|
|
echo ">>> [gui] system=server, skipping"
|
|
exit 0
|
|
fi
|
|
|
|
case "$DISTRO_ID" in
|
|
arch)
|
|
echo ">>> [gui] arch, system=$SYS"
|
|
|
|
# System packages
|
|
sudo pacman -Syu --noconfirm --needed \
|
|
noto-fonts noto-fonts-cjk noto-fonts-emoji ttf-font-awesome nerd-fonts \
|
|
pipewire wireplumber pipewire-alsa pipewire-audio pipewire-jack \
|
|
pipewire-pulse gst-plugin-pipewire qt6-multimedia \
|
|
network-manager-applet \
|
|
bluez bluez-utils blueman gnome-bluetooth-3.0 \
|
|
cups cups-pdf cups-pk-helper \
|
|
qt5ct qt6ct \
|
|
papirus-icon-theme breeze-cursors adw-gtk-theme \
|
|
ddcutil playerctl libnotify mediainfo \
|
|
fprintd kimageformats \
|
|
kdeconnect loupe dosfstools gnome-disk-utility \
|
|
cava guvcview tesseract tesseract-data-eng \
|
|
cliphist wl-clipboard tesseract zbar imagemagick img2pdf \
|
|
xdg-desktop-portal-hyprland gnome-keyring \
|
|
hyprland greetd ghostty
|
|
|
|
# Dank Shell - sed workaround to pass args to installer
|
|
sudo -v && curl -fsSL https://install.danklinux.com | sed 's#\./installer$#./installer "$@"#' | sh -s -- -c hyprland -t ghostty --include-deps dms-greeter,danksearch,dankcalendar -y
|
|
# Firefox theming
|
|
pipx install pywalfox
|
|
~/.local/bin/pywalfox install
|
|
mkdir -p ~/.cache/wal
|
|
touch ~/.cache/wal/dank-pywalfox.json
|
|
ln -sf ~/.cache/wal/dank-pywalfox.json ~/.cache/wal/colors.json
|
|
;;
|
|
|
|
ubuntu)
|
|
echo ">>> [gui] ubuntu, system=$SYS"
|
|
sudo apt-get install -y \
|
|
kdeconnect dosfstools gnome-disk-utility \
|
|
cava ddcutil guvcview
|
|
;;
|
|
|
|
*)
|
|
echo ">>> [gui] unsupported distro: ${DISTRO_ID:-unknown}, skipping"
|
|
exit 0
|
|
;;
|
|
esac
|
|
|
|
echo ">>> [gui] done"
|