puntos/.zprofile

20 lines
644 B
Text
Raw Normal View History

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"
mkdir -p "$HOME/.local/share/sway"
log="$HOME/.local/share/sway/$(date +%Y-%m-%d@%H:%M:%S).log"
2022-10-16 18:34:17 +00:00
pgrep -U "$(id -u)" runsv >/dev/null || (nohup runsvdir ~/.local/share/service ............. >/dev/null &)
2021-12-27 13:37:48 +00:00
exec env \
2022-04-05 16:46:44 +00:00
XDG_RUNTIME_DIR="$XDG_RUNTIME_DIR" \
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