Add a script to launch sway on FreeBSD.

This commit is contained in:
Tom Alexander
2022-10-17 15:15:09 -04:00
parent 172b4063ee
commit 1f408202f1
4 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
#!/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