Skip to content

Commit

Permalink
Add fix if sway is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
leomeinel authored Apr 25, 2023
1 parent d489239 commit 1ea8090
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .bash_profile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ pacman -Qq rustup >/dev/null 2>&1 &&
[[ $- != *i* ]] &&
return

# If sway is not installed, don't do anything
pacman -Qq sway >/dev/null 2>&1 ||
return

# Start sway with environment variables
if [ -z "${WAYLAND_DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
export MOZ_ENABLE_WAYLAND=1
export MOZ_WEBRENDER=1
Expand Down

0 comments on commit 1ea8090

Please sign in to comment.