Merge pull request #196 from JaKooLit/main

main to development
This commit is contained in:
Ja.KooLit
2025-01-29 20:57:24 +09:00
committed by GitHub
5 changed files with 18 additions and 15 deletions

View File

@@ -1,5 +1,8 @@
## Changelogs ## Changelogs
## 16 Jan 2025
- updated nvidia.sh to install non-git libva-nvidia-driver
## 13 Jan 2025 ## 13 Jan 2025
- replaced polkit-gnome with hyprpolkitagent - replaced polkit-gnome with hyprpolkitagent

View File

@@ -54,6 +54,9 @@ https://github.com/JaKooLit/Hyprland-Dots/assets/85185940/50d53755-0f11-45d6-991
</div> </div>
### Gallery and Videos ### Gallery and Videos
- latest Ksk royal's [youtube video](https://youtu.be/lR7EtbVYWuc?si=eNHVSbStKS1eNVly) installation
<details> <details>
<summary> <summary>
📷 Screenshots 📷 Screenshots
@@ -107,7 +110,7 @@ https://github.com/JaKooLit/Hyprland-Dots/assets/85185940/50d53755-0f11-45d6-991
#### 💫 SDDM and GTK Themes offered #### 💫 SDDM and GTK Themes offered
- If you opted to install SDDM theme, here's the [`LINK`](https://github.com/JaKooLit/simple-sddm-2) - If you opted to install SDDM theme, here's the [`LINK`](https://github.com/JaKooLit/simple-sddm-2)
- If you opted to install GTK Themes, Icons, here's the [`LINK`](https://github.com/JaKooLit/GTK-themes-icons) & Bibata Cursor Modern Ice (assets directory) - If you opted to install GTK Themes, Icons, here's the [`LINK`](https://github.com/JaKooLit/GTK-themes-icons). This also includes Bibata Modern Ice cursor.
#### 👀 NVidia GPU Owners. #### 👀 NVidia GPU Owners.
- By default, nvidia-dkms will be installed. and only supports GTX 900 and newer. If required to install older driver, edit the nvidia.sh in install-scripts directory - By default, nvidia-dkms will be installed. and only supports GTX 900 and newer. If required to install older driver, edit the nvidia.sh in install-scripts directory

View File

@@ -3,14 +3,11 @@
# Main Hyprland Package # # Main Hyprland Package #
hypr=( hypr=(
hyprcursor hyprland
hyprutils
aquamarine
hypridle hypridle
hyprlock hyprlock
hyprland
pyprland pyprland
hyprland-qtutils libspng
) )
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ## ## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##

View File

@@ -10,9 +10,10 @@ nvidia_pkg=(
nvidia-settings nvidia-settings
nvidia-utils nvidia-utils
libva libva
libva-nvidia-driver-git libva-nvidia-driver
) )
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ## ## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
# Determine the directory where the script is located # Determine the directory where the script is located
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
@@ -37,7 +38,7 @@ if pacman -Qs hyprland > /dev/null; then
fi fi
# Install additional Nvidia packages # Install additional Nvidia packages
printf "${YELLOW} Installing addition Nvidia packages...\n" printf "${YELLOW} Installing Nvidia Packages and Linux headers...\n"
for krnl in $(cat /usr/lib/modules/*/pkgbase); do for krnl in $(cat /usr/lib/modules/*/pkgbase); do
for NVIDIA in "${krnl}-headers" "${nvidia_pkg[@]}"; do for NVIDIA in "${krnl}-headers" "${nvidia_pkg[@]}"; do
install_package "$NVIDIA" 2>&1 | tee -a "$LOG" install_package "$NVIDIA" 2>&1 | tee -a "$LOG"
@@ -53,12 +54,13 @@ else
fi fi
sudo mkinitcpio -P 2>&1 | tee -a "$LOG" sudo mkinitcpio -P 2>&1 | tee -a "$LOG"
printf "\n\n\n"
printf "\n%.0s" {1..3}
# Additional Nvidia steps # Additional Nvidia steps
NVEA="/etc/modprobe.d/nvidia.conf" NVEA="/etc/modprobe.d/nvidia.conf"
if [ -f "$NVEA" ]; then if [ -f "$NVEA" ]; then
printf "${OK} Seems like nvidia-drm modeset=1 is already added in your system..moving on.\n" printf "${OK} Seems like nvidia-drm modeset=1 is already added in your system..moving on."
printf "\n" printf "\n"
else else
printf "\n" printf "\n"
@@ -72,19 +74,17 @@ fi
if [ -f /etc/default/grub ]; then if [ -f /etc/default/grub ]; then
# Check if nvidia-drm.modeset=1 is present # Check if nvidia-drm.modeset=1 is present
if ! sudo grep -q "nvidia-drm.modeset=1" /etc/default/grub; then if ! sudo grep -q "nvidia-drm.modeset=1" /etc/default/grub; then
# Add nvidia-drm.modeset=1 to GRUB_CMDLINE_LINUX_DEFAULT
sudo sed -i -e 's/\(GRUB_CMDLINE_LINUX_DEFAULT=".*\)"/\1 nvidia-drm.modeset=1"/' /etc/default/grub sudo sed -i -e 's/\(GRUB_CMDLINE_LINUX_DEFAULT=".*\)"/\1 nvidia-drm.modeset=1"/' /etc/default/grub
echo "nvidia-drm.modeset=1 added to /etc/default/grub" 2>&1 | tee -a "$LOG" echo "nvidia-drm.modeset=1 added to /etc/default/grub" 2>&1 | tee -a "$LOG"
fi fi
# Check if nvidia_drm.fbdev=1 is present # Check if nvidia_drm.fbdev=1 is present
if ! sudo grep -q "nvidia_drm.fbdev=1" /etc/default/grub; then if ! sudo grep -q "nvidia_drm.fbdev=1" /etc/default/grub; then
# Add nvidia_drm.fbdev=1 to GRUB_CMDLINE_LINUX_DEFAULT
sudo sed -i -e 's/\(GRUB_CMDLINE_LINUX_DEFAULT=".*\)"/\1 nvidia_drm.fbdev=1"/' /etc/default/grub sudo sed -i -e 's/\(GRUB_CMDLINE_LINUX_DEFAULT=".*\)"/\1 nvidia_drm.fbdev=1"/' /etc/default/grub
echo "nvidia_drm.fbdev=1 added to /etc/default/grub" 2>&1 | tee -a "$LOG" echo "nvidia_drm.fbdev=1 added to /etc/default/grub" 2>&1 | tee -a "$LOG"
fi fi
# Regenerate GRUB configuration if any changes were made # Regenerate GRUB configuration
if sudo grep -q "nvidia-drm.modeset=1" /etc/default/grub || sudo grep -q "nvidia_drm.fbdev=1" /etc/default/grub; then if sudo grep -q "nvidia-drm.modeset=1" /etc/default/grub || sudo grep -q "nvidia_drm.fbdev=1" /etc/default/grub; then
sudo grub-mkconfig -o /boot/grub/grub.cfg sudo grub-mkconfig -o /boot/grub/grub.cfg
fi fi
@@ -103,7 +103,6 @@ if [[ $blacklist_nouveau =~ ^[Yy]$ ]]; then
if [ -f "$NOUVEAU" ]; then if [ -f "$NOUVEAU" ]; then
printf "${OK} Seems like nouveau is already blacklisted..moving on.\n" printf "${OK} Seems like nouveau is already blacklisted..moving on.\n"
else else
printf "\n"
echo "blacklist nouveau" | sudo tee -a "$NOUVEAU" 2>&1 | tee -a "$LOG" echo "blacklist nouveau" | sudo tee -a "$NOUVEAU" 2>&1 | tee -a "$LOG"
printf "${NOTE} has been added to $NOUVEAU.\n" printf "${NOTE} has been added to $NOUVEAU.\n"
printf "\n" printf "\n"
@@ -116,7 +115,7 @@ if [[ $blacklist_nouveau =~ ^[Yy]$ ]]; then
fi fi
fi fi
else else
printf "${NOTE} Skipping nouveau blacklisting.\n" 2>&1 | tee -a "$LOG" printf "${NOTE} Skipping nouveau blacklisting..." 2>&1 | tee -a "$LOG"
fi fi
clear clear

View File

@@ -8,6 +8,7 @@ fi
xdg=( xdg=(
xdg-desktop-portal-hyprland xdg-desktop-portal-hyprland
xdg-desktop-portal-gtk xdg-desktop-portal-gtk
umockdev
) )
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ## ## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##