diff --git a/setup_sway_isomode.bash b/setup_sway_isomode.bash index f24eab1..c0a7989 100644 --- a/setup_sway_isomode.bash +++ b/setup_sway_isomode.bash @@ -12,9 +12,9 @@ git clone --branch nvidia-testing https://github.com/EndeavourOS-Community-Editi # Check if nvidia-inst is installed # If it is, do the Nvidia stuff if pacman -Qq nvidia-inst 2>/dev/null | grep -q .; then - # Add the --unsupported-gpu flag to the sway call in greetd.conf + echo "Adding the --unsupported-gpu flag to the sway call in greetd.conf..." sed -i 's|sway -c|sway --unsupported-gpu -c|' sway/etc/greetd/greetd.conf - # Create a custom desktop file that uses sway --unsupported-gpu + echo "Adding a custom desktop file for Nvidia sessions..." mkdir -p /usr/share/wayland-sessions cat < /usr/share/wayland-sessions/sway-nvidia.desktop [Desktop Entry]