diff --git a/.local/share/dotfiles/extra/hyprland-nvidia-fix.sh b/.local/share/dotfiles/extra/hyprland-nvidia-fix.sh new file mode 100755 index 0000000..a99500f --- /dev/null +++ b/.local/share/dotfiles/extra/hyprland-nvidia-fix.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +CURDIR="$(dirname "$0")" +. "${CURDIR}/../helpers/root_guard.sh" +root_guard + +echo "options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/path/to/tmp-nvidia" > /etc/modprobe.d/nvidia-power-management.conf + +#install -m 755 "${CURDIR}/../files/scripts/suspend-hyprland" /usr/local/bin +#install -m 644 "${CURDIR}/../files/services/hyprland-suspend.service" /usr/lib/systemd/system +#install -m 644 "${CURDIR}/../files/services/hyprland-resume.service" /usr/lib/systemd/system +# +#systemctl daemon-reload +#systemctl enable hyprland-suspend.service +#systemctl enable hyprland-resume.service +systemctl enable nvidia-suspend +systemctl enable nvidia-hibernate diff --git a/.local/share/dotfiles/pkglist-add b/.local/share/dotfiles/pkglist-add index 0dffb86..0fe0c49 100644 --- a/.local/share/dotfiles/pkglist-add +++ b/.local/share/dotfiles/pkglist-add @@ -36,6 +36,7 @@ polkit-gnome qqc2-desktop-style qt5ct qt6ct +realtime-privileges seatd starship sudo