mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 10:20:12 +01:00
commit
39db98014b
@ -104,7 +104,10 @@ printf "${YELLOW} nvidia-stuff to /etc/default/grub..."
|
|||||||
|
|
||||||
# Define the configuration file and the line to add
|
# Define the configuration file and the line to add
|
||||||
config_file="/etc/modprobe.d/nvidia.conf"
|
config_file="/etc/modprobe.d/nvidia.conf"
|
||||||
line_to_add="options nvidia-drm modeset=1"
|
line_to_add="""
|
||||||
|
options nvidia-drm modeset=1
|
||||||
|
options nvidia NVreg_PreserveVideoMemoryAllocations=1
|
||||||
|
"""
|
||||||
|
|
||||||
# Check if the config file exists
|
# Check if the config file exists
|
||||||
if [ ! -e "$config_file" ]; then
|
if [ ! -e "$config_file" ]; then
|
||||||
|
|||||||
@ -35,7 +35,7 @@ fi
|
|||||||
|
|
||||||
# Clone and build xdg-desktop-portal-hyprland
|
# Clone and build xdg-desktop-portal-hyprland
|
||||||
printf "${NOTE} Installing xdg-desktop-portal-hyprland...\n"
|
printf "${NOTE} Installing xdg-desktop-portal-hyprland...\n"
|
||||||
if git clone --recursive https://github.com/hyprwm/xdg-desktop-portal-hyprland; then
|
if git clone --branch v1.3.0 --recursive https://github.com/hyprwm/xdg-desktop-portal-hyprland; then
|
||||||
cd xdg-desktop-portal-hyprland || exit 1
|
cd xdg-desktop-portal-hyprland || exit 1
|
||||||
make all
|
make all
|
||||||
if sudo make install 2>&1 | tee -a "$MLOG" ; then
|
if sudo make install 2>&1 | tee -a "$MLOG" ; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user