2022-10-17 19:15:09 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
#
|
|
|
|
# Launch sway
|
|
|
|
set -euo pipefail
|
|
|
|
IFS=$'\n\t'
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
|
|
|
|
if [[ ! -v XDG_RUNTIME_DIR ]]; then
|
|
|
|
export XDG_RUNTIME_DIR=$(mktemp -d)
|
2022-10-17 22:47:21 +00:00
|
|
|
chmod 0700 "$XDG_RUNTIME_DIR"
|
|
|
|
|
2022-10-17 19:15:09 +00:00
|
|
|
fi
|
|
|
|
|
2022-11-25 22:23:14 +00:00
|
|
|
# Enable wayland support for firefox
|
|
|
|
export MOZ_ENABLE_WAYLAND=1
|
|
|
|
|
|
|
|
# Wayland seems enabled by default for qt5 with qt5-wayland installed
|
|
|
|
# Wayland does not seem enabled for gtk apps and setting GDK_BACKEND=wayland did not change that.
|
|
|
|
|
2022-11-25 21:44:07 +00:00
|
|
|
exec dbus-launch sway -d &> $HOME/.config/swaylog
|