dotfiles/modules/06-hyprland.sh

38 lines
727 B
Bash
Executable File

#!/usr/bin/env bash
# Install Hyprland and related software
HYPR_PACKAGES=(
hyprland
hyprlock
hypridle
xdg-desktop-portal-hyprland
waybar
rofi-wayland
mako
wl-clipboard
wlogout
network-manager-applet
brightnessctl
alacritty
ttf-jetbrains-mono-nerd
ttf-jetbrains-mono
ttf-nerd-fonts-symbols
noto-fonts
noto-fonts-emoji
)
to_install=()
for pkg in "${HYPR_PACKAGES[@]}"; do
if ! paru -Q "$pkg" &>/dev/null; then
to_install+=("$pkg")
fi
done
if [ "${#to_install[@]}" -gt 0 ]; then
paru -S --noconfirm "${to_install[@]}"
echo "Hyprland and related tools installed and configured."
else
echo "All Hyprland and related tools already installed."
fi