mirror of
https://github.com/danielepintore/os-configurer.git
synced 2026-06-15 20:25:13 +02:00
49 lines
1.9 KiB
Bash
Executable File
49 lines
1.9 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# install hyprland desktop portals and the gtk one for file picker alongside other base packages
|
|
sudo pacman -S hyprland uwsm hyprpaper hypridle hyprlock hyprcursor hyprpicker xdg-desktop-portal-hyprland \
|
|
xdg-desktop-portal-gtk rofi-wayland waybar dunst inotify-tools batsignal \
|
|
grim slurp wl-clipboard hyprpolkitagent gnome-keyring openssh --noconfirm
|
|
|
|
# install fonts
|
|
sudo pacman -S ttf-agave-nerd ttf-liberation otf-font-awesome ttf-font-awesome ttf-jetbrains-mono ttf-jetbrains-mono-nerd --noconfirm
|
|
|
|
# configure reflector to have updated mirrors
|
|
sudo pacman -S reflector --noconfirm
|
|
sudo mv $1/reflector.conf /etc/xdg/reflector/reflector.conf
|
|
sudo chmod 644 /etc/xdg/reflector/reflector.conf
|
|
sudo chown root:root /etc/xdg/reflector/reflector.conf
|
|
sudo systemctl enable --now reflector.timer
|
|
|
|
# enable paccache timer to delete cached packages that are older than a week
|
|
sudo pacman -S pacman-contrib --noconfirm
|
|
sudo systemctl enable --now paccache.timer
|
|
|
|
# enable xdg-user-dirs service to generate locale updated user directory
|
|
sudo pacman -S xdg-user-dirs --noconfirm
|
|
systemctl --user enable --now xdg-user-dirs-update.service
|
|
|
|
# configure pacman (enable colors and cool progress bar)
|
|
sudo sed -i "s/#Color/Color\nILoveCandy/g" /etc/pacman.conf
|
|
# enable multilib repo for steam
|
|
sudo sed -i '/\[multilib\]/,/^$/s/^#\(.*\)$/\1/' /etc/pacman.conf
|
|
sudo pacman -Syu
|
|
|
|
# disable debug packages builds on makepkg
|
|
sudo sed -i '/^OPTIONS=/s/ debug/ !debug/g' /etc/makepkg.conf
|
|
|
|
# create screenshots directory for grim
|
|
mkdir -p $HOME/Pictures/Screenshots
|
|
|
|
# configure uwsm for hyprland
|
|
systemctl --user enable --now hypridle.service
|
|
systemctl --user enable --now hyprpaper.service
|
|
systemctl --user enable --now hyprpolkitagent.service
|
|
|
|
# configure gnome-keyring
|
|
systemctl --user enable --now gcr-ssh-agent.socket
|
|
|
|
# configure plymouth (opt for manual config)
|
|
# xdg-open https://wiki.archlinux.org/title/Plymouth
|
|
|