puntos/.zprofile

17 lines
531 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"
2022-05-31 22:00:53 +00:00
mkdir -p "$HOME/.local/share/sway"
log="$HOME/.local/share/sway/$(date +%Y-%m-%d@%H:%M:%S).log"
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-05-31 22:00:53 +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