2021-12-27 16:03:26 +00:00
|
|
|
source ~/.profile
|
2021-12-27 13:37:48 +00:00
|
|
|
if ! "$REMOTE" && test "$(tty)" = /dev/tty1; then
|
2022-04-05 16:46:44 +00:00
|
|
|
doas mkdir -p /run/user
|
|
|
|
doas chmod 777 /run/user
|
|
|
|
XDG_RUNTIME_DIR="/run/user/$(id -u)"
|
|
|
|
mkdir -p "$XDG_RUNTIME_DIR"
|
|
|
|
chmod 700 "$XDG_RUNTIME_DIR"
|
2022-10-14 22:25:38 +00:00
|
|
|
mkdir -p "$HOME/.local/share/sway"
|
|
|
|
log="$HOME/.local/share/sway/$(date +%Y-%m-%d@%H:%M:%S).log"
|
2022-10-15 15:48:38 +00:00
|
|
|
|
|
|
|
pgrep -U "$(id -u)" runsv >/dev/null || (nohup runsvdir ~/.local/share/service >/dev/null &; disown)
|
|
|
|
|
2021-12-27 13:37:48 +00:00
|
|
|
exec env \
|
2022-04-05 16:46:44 +00:00
|
|
|
XDG_RUNTIME_DIR="$XDG_RUNTIME_DIR" \
|
2022-10-14 22:25:38 +00:00
|
|
|
XDG_CURRENT_DESKTOP=sway \
|
|
|
|
XDG_SESSION_DESKTOP=sway \
|
|
|
|
dbus-run-session sway >"$log" 2>&1
|
2021-12-27 13:37:48 +00:00
|
|
|
fi
|
2021-12-27 16:03:26 +00:00
|
|
|
source ~/.zshrc
|