machine_setup/ansible/roles/sway/files/launch_sway_freebsd.bash
2023-03-23 13:31:56 -04:00

18 lines
589 B
Bash

#!/usr/bin/env bash
#
# Launch sway
set -euo pipefail
IFS=$'\n\t'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export XDG_CURRENT_DESKTOP=sway
export WLR_RENDERER=vulkan
# Enable wayland support for firefox
export MOZ_ENABLE_WAYLAND=1
# Wayland seems enabled by default for qt5 with qt5-wayland installed but if a proprietary program bundles their own qt then I may have to set QT_QPA_PLATFORM="wayland;xcb"
# Wayland does not seem enabled for gtk apps and setting GDK_BACKEND=wayland did not change that.
exec ck-launch-session dbus-launch sway -d &> $HOME/.config/swaylog