2024-03-30 18:27:28 +00:00
|
|
|
# if running bash
|
|
|
|
if [ -n "$BASH_VERSION" ]; then
|
|
|
|
# include .bashrc if it exists
|
|
|
|
if [ -f "$HOME/.bashrc" ]; then
|
|
|
|
. "$HOME/.bashrc"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2024-03-30 18:36:49 +00:00
|
|
|
# set PATH so it includes user's private bin dirs if they exists
|
2024-03-30 18:27:28 +00:00
|
|
|
if [ -d "$HOME/bin" ]; then
|
|
|
|
PATH="$HOME/bin:$PATH"
|
|
|
|
fi
|
|
|
|
if [ -d "$HOME/.local/bin" ]; then
|
|
|
|
PATH="$HOME/.local/bin:$PATH"
|
|
|
|
fi
|
|
|
|
|
2024-03-30 18:36:49 +00:00
|
|
|
# set up wayland env vars
|
2024-03-30 18:27:28 +00:00
|
|
|
if [ -z "${WAYLAND_DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
|
|
|
|
export MOZ_ENABLE_WAYLAND=1
|
|
|
|
export MOZ_WEBRENDER=1
|
|
|
|
export XDG_SESSION_TYPE=wayland
|
2024-03-30 18:36:49 +00:00
|
|
|
export XDG_CURRENT_DESKTOP=sway
|
2024-03-30 18:27:28 +00:00
|
|
|
exec sway
|
|
|
|
fi
|