a339347d0d
Otherwise mako will fail to dismiss notifications because it fails to connect to dbus.
15 lines
288 B
Bash
15 lines
288 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)
|
|
chmod 0700 "$XDG_RUNTIME_DIR"
|
|
|
|
fi
|
|
|
|
exec dbus-launch sway -d &> $HOME/.config/swaylog
|