2025-06-02 10:29:11 +02:00
|
|
|
yay -S --noconfirm --needed \
|
2025-06-18 21:50:49 +02:00
|
|
|
hyprland hyprshot hyprpicker hyprlock hypridle hyprpolkitagent hyprland-qtutils \
|
2025-06-22 20:48:38 -04:00
|
|
|
wofi waybar mako swaybg \
|
2025-06-25 09:17:59 -07:00
|
|
|
xdg-desktop-portal-hyprland xdg-desktop-portal-gtk
|
2025-06-07 22:31:47 +02:00
|
|
|
|
2025-06-29 22:19:36 +02:00
|
|
|
# Checks if nvidia gpu exist
|
|
|
|
gpu_info=$(lspci | grep -i 'nvidia')
|
|
|
|
if [ -n "$gpu_info" ]; then
|
|
|
|
# Ask user if they want to install NVIDIA drivers
|
|
|
|
if [ -t 0 ]; then
|
|
|
|
read -p "NVIDIA GPU detected. Do you want to install NVIDIA drivers? (y/N) " install_nvidia
|
|
|
|
if [[ "$install_nvidia" =~ ^[yY](es)?$ ]]; then
|
|
|
|
source ./nvidia
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
# Non-interactive mode - run nvidia script
|
|
|
|
source ./nvidia
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2025-06-02 21:22:23 +02:00
|
|
|
# Start Hyprland on first session
|
2025-06-02 21:27:50 +02:00
|
|
|
echo "[[ -z \$DISPLAY && \$(tty) == /dev/tty1 ]] && exec Hyprland" >~/.bash_profile
|