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

15 lines
276 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 )"
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"
fi
2022-10-17 22:47:21 +00:00
exec sway -d &> $HOME/.config/swaylog