machine_setup/ansible/roles/sway/files/launch_sway_freebsd.bash

24 lines
747 B
Bash
Raw Normal View History

#!/usr/bin/env bash
#
# Launch sway
set -euo pipefail
IFS=$'\n\t'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
2022-12-10 20:29:19 +00:00
export XDG_CURRENT_DESKTOP=sway
export WLR_RENDERER=vulkan
2022-12-10 20:29:19 +00:00
2024-04-12 23:06:00 +00:00
# Enable wayland support for electron (vscode)
export ELECTRON_OZONE_PLATFORM_HINT=wayland
2022-11-25 22:23:14 +00:00
# Enable wayland support for firefox
export MOZ_ENABLE_WAYLAND=1
# Enable dark theme
# export QT_STYLE_OVERRIDE=adwaita-dark
2022-11-29 08:03:18 +00:00
# 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"
2022-11-25 22:23:14 +00:00
# Wayland does not seem enabled for gtk apps and setting GDK_BACKEND=wayland did not change that.
exec ck-launch-session dbus-run-session sway -d &> $HOME/.config/swaylog