machine_setup/ansible/roles/sway/files/launch_sway.bash
2022-10-17 15:15:09 -04:00

13 lines
237 B
Bash

#!/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)
fi
sway |& tee $HOME/.config/swaylog