Files
omarchy/install/hyprlandia.sh
Kn0ax fbd85990d0 [not tested] nvidia support
this commit tries to add nvidia suppport.
it's not tested yet.
2025-06-29 22:27:16 +02:00

23 lines
774 B
Bash

yay -S --noconfirm --needed \
hyprland hyprshot hyprpicker hyprlock hypridle hyprpolkitagent hyprland-qtutils \
wofi waybar mako swaybg \
xdg-desktop-portal-hyprland xdg-desktop-portal-gtk
# 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
# Start Hyprland on first session
echo "[[ -z \$DISPLAY && \$(tty) == /dev/tty1 ]] && exec Hyprland" >~/.bash_profile