Skip to content

Commit

Permalink
Merge pull request #114 from joantolo/support-proprietary-drivers
Browse files Browse the repository at this point in the history
Allow sway to be run with proprietary drivers
  • Loading branch information
FilippoBonazziSUSE authored May 24, 2023
2 parents fc52dec + 72c60db commit ce14428
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion sway/sway-run.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,15 @@ set -a
eval "$(/usr/lib/systemd/user-environment-generators/30-systemd-environment-d-generator)"
set +a

# Set dependencies to run with proprietary drivers
if grep -qE "nvidia|fglrx" /proc/modules; then
export WLR_NO_HARDWARE_CURSORS=1
unsupported_gpu="--unsupported-gpu"
else
unsupported_gpu=""
fi

# Start the Sway session
systemctl --user start sway-session.target

systemd-cat --identifier=sway sway $@
systemd-cat --identifier=sway sway $unsupported_gpu $@

0 comments on commit ce14428

Please sign in to comment.