dotfiles/install_gui.sh

147 lines
5.2 KiB
Bash
Raw Normal View History

2023-08-01 10:06:31 +00:00
#!/bin/bash
set -euo pipefail
# Arch installation script to be ran for an unpriviledged user after base setup.
# (Check install_user.sh first)
# $ cd ~/dots
# $ ./install_gui.sh
# ------------------------------------------------------------------------------
if [ "$UID" = 0 ]; then
echo >&2 "This script must be ran as an unpriviledged user (non-root)"
exit 1
fi
# cd into the dotfiles dir, no matter where the script was called from
pushd "$(dirname "$0")"
# Copy over various settings
2023-08-01 15:06:55 +00:00
cp -a home/.pki ~ # symlink
mkdir -p ~/.local/share/pki
2023-08-01 15:06:55 +00:00
cp -a home/.mozilla ~ # symlink
2023-08-01 10:06:31 +00:00
mkdir -p ~/.config/mozilla
mkdir -p ~/.config/nv
mkdir -p ~/.cache/nv
touch ~/.cache/nv/.keep
2023-08-01 10:06:31 +00:00
cp -ar home/.local/share/thumbnailers ~/.local/share
cp -ar home/.local/share/icons ~/.local/
cp -ar home/.config/fontconfig ~/.config
cp -ar home/.config/python_keyring ~/.config
cp -ra home/.config/wget ~/.config
# More opinionated settings
cp home/.config/mimeapps.list ~/.config
cp -ar home/.config/mpv ~/.config
cp -ar home/.config/pcmanfm ~/.config
cp -ar home/.config/pcmanfm-qt ~/.config
cp -ar home/.config/pypoetry ~/.config
cp -ar home/.config/qt5ct ~/.config
cp -ar home/.config/qt6ct ~/.config
cp -ar home/.config/Kvantum ~/.config
cp -ar home/.config/gtk-2.0 ~/.config
cp -ar home/.config/gtk-3.0 ~/.config
cp -ar home/.config/gtk-4.0 ~/.config
2023-08-01 10:06:31 +00:00
cp -ar home/.config/tmux ~/.config
cp -ra home/.config/hyfetch ~/.config
2023-08-01 10:06:31 +00:00
cp -ra home/.config/wireplumber ~/.config
cp -ra home/.config/alacritty ~/.config
cp -ra home/.config/kitty ~/.config
cp -ra home/.config/systemd ~/.config
2024-12-22 01:11:41 +00:00
cp -ra home/.config/swaync ~/.config
cp -ra home/.config/eww ~/.config
cp -ra home/.config/hypr ~/.config
2023-08-01 10:06:31 +00:00
cp home/.config/chromium-flags.conf ~/.config
cp -ra home/.config/swappy ~/.config
cp -ra home/.config/wofi ~/.config
cp -ra home/.config/nomacs ~/.config
cp -ra home/.config/qimgv ~/.config
cp -ra home/.config/xdg-desktop-portal ~/.config
2024-03-14 00:32:46 +00:00
# Sync mirrors and update before other installations
paru -Syu --noconfirm
2023-08-01 10:06:31 +00:00
# Instal fonts
paru -S --needed \
libxft xorg-font-util \
ttf-joypixels otf-jost lexend-fonts-git ttf-sarasa-gothic \
ttf-roboto ttf-work-sans ttf-comic-neue \
gnu-free-fonts tex-gyre-fonts ttf-liberation otf-unifont \
inter-font ttf-lato ttf-dejavu noto-fonts noto-fonts-cjk \
noto-fonts-emoji ttf-material-design-icons-git \
ttf-font-awesome ttf-twemoji otf-openmoji \
adobe-source-code-pro-fonts adobe-source-han-mono-otc-fonts \
adobe-source-sans-fonts ttf-jetbrains-mono otf-monaspace \
ttf-ms-fonts
# nerd fonts (I like to install specific pkgs instead of the whole nerd-fonts group
# as it's pretty large: ~8GB)
paru -S --needed \
ttf-firacode-nerd otf-firamono-nerd ttf-iosevka-nerd ttf-nerd-fonts-symbols \
ttf-hack-nerd ttf-heavydata-nerd ttf-gohu-nerd
2023-08-01 10:06:31 +00:00
# Audio
paru -S --noconfirm --needed \
2023-08-01 10:06:31 +00:00
pipewire pipewire-pulse pipewire-pulse pipewire-jack wireplumber alsa-utils pulsemixer
# Themes
paru -S --noconfirm --needed \
rose-pine-cursor papirus-folders-catppuccin-git tokyonight-gtk-theme-git \
nwg-look kvantum kvantum-qt5 qt5ct qt6ct kvantum-theme-catppuccin-git
# Extra themes (I don't use these in my config, but I might switch at some point
# and it's nice to have them listed and available)
paru -S --noconfirm --needed \
2023-08-01 10:06:31 +00:00
gnome-themes-extra gnome-icon-theme-extras python-qt-material notify-osd papirus-icon-theme \
adwaita-qt5 adwaita-qt6
2023-08-01 10:06:31 +00:00
# WM Essentials
paru -S --noconfirm --needed \
2024-12-22 01:11:41 +00:00
swaync udisks2 udiskie gvfs gvfs-mtp gnome-keyring xorg-xinput polkit-gnome brightnessctl
2023-08-01 10:06:31 +00:00
# Wayland WM essentials
paru -S --noconfirm --needed \
2024-12-09 17:12:25 +00:00
wl-clipboard xdg-desktop-portal xdg-desktop-portal-gtk qt5-wayland qt6-wayland wev wl-gammarelay-rs wdisplays
2023-08-01 10:06:31 +00:00
# Utilities
paru -S --noconfirm --needed \
nm-connection-editor ffmpegthumbnailer upower devour hyfetch fastfetch bottom tesseract tesseract-data-eng
2023-08-01 10:06:31 +00:00
# Wayland Utilities
paru -S --noconfirm --needed \
grim slurp wofi swappy wf-recorder wlogout clipman hyprpicker hyprpaper
2023-08-01 10:06:31 +00:00
# Applications
paru -S --noconfirm --needed \
2024-03-12 23:59:36 +00:00
vesktop firefox chromium kitty mpv pcmanfm-qt file-roller obs-studio qbittorrent \
qalculate-gtk spotify qimgv nomacs stremio seahorse
2023-08-01 10:06:31 +00:00
# Bluetooth
paru -S --noconfirm --needed bluez bluez-utils blueberry
# Hyprcursor theme of my choice
mkdir -p ~/.local/share/icons
pushd ~/.local/share/icons
git clone https://github.com/ndom91/rose-pine-cursor-hyprcursor
2023-08-01 10:06:31 +00:00
popd
# Lockscreen
# To test the lockscreen, you can run loginctl lock-session, while in a graphical session
paru -S --noconfirm --needed hyprlock hypridle systemd-lock-handler
2023-08-01 10:06:31 +00:00
# Eww bar
paru -S --noconfirm --needed eww
# Hyprland
paru -S --noconfirm --needed hyprland xdg-desktop-portal-hyprland
sudo pacman -R --noconfirm xdg-desktop-portal-gnome || true # don't fail if this isn't installed
# Tools needed to build hyprland from source
# (even though I will not be building hyprland here and will instead use the packaged version,
# I like to have these on my system, since I sometimes want to experiment with building hyprland
# for debuggin)
paru -S --noconfirm --needed \
gdb ninja gcc cmake meson libxcb xcb-proto xcb-util xcb-util-keysyms libxfixes libx11 libxcomposite \
xorg-xinput libxrender pixman wayland-protocols cairo pango seatd libxkbcommon xcb-util-wm xorg-xwayland \
libinput libliftoff libdisplay-info cpio hyprlang hyprcursor
2023-08-01 10:06:31 +00:00
popd