Add a linux launch_sway script.

This commit is contained in:
Tom Alexander
2022-10-17 18:23:37 -04:00
parent a159518c42
commit f0b917cba9
4 changed files with 20 additions and 1 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