Add a script to launch sway on FreeBSD.
This commit is contained in:
12
ansible/roles/sway/files/launch_sway.bash
Normal file
12
ansible/roles/sway/files/launch_sway.bash
Normal 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
|
||||
Reference in New Issue
Block a user