dotfiles/dot_profile

42 lines
1.2 KiB
Text
Raw Permalink Normal View History

2023-01-30 14:28:59 +01:00
# First make sure dbus is started
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
export DBUS_SESSION_BUS_ADDRESS="$(dbus-daemon --session --fork --print-address)"
2023-01-30 14:28:59 +01:00
fi
echo "D-Bus per-session daemon address is: $DBUS_SESSION_BUS_ADDRESS"
# Set XDG_RUNTIME_DIR
# Paragraph modified from https://wiki.gentoo.org/wiki/Sway
if [ -z "${XDG_RUNTIME_DIR}" ]; then
export XDG_RUNTIME_DIR="/tmp/${UID}-runtime-dir"
if ! [ -d "${XDG_RUNTIME_DIR}" ]; then
mkdir "${XDG_RUNTIME_DIR}"
chmod 0700 "${XDG_RUNTIME_DIR}"
fi
fi
# Enable SSH agent
eval $(keychain --noask --eval --quiet)
# Various exports
export SHELL="$(command -v zsh)"
export _JAVA_AWT_WM_NONREPARENTING=1 #Make java programs work somewhat
export PAN_MESA_DEBUG=gl3 #Fix alacritty not starting
export MOZ_ENABLE_WAYLAND=1 # Fix firefox not starting
export QT_QPA_PLATFORMTHEME=qt5ct
2023-01-30 14:28:59 +01:00
export PATH="$PATH:/home/${USER}/.local/bin/"
export PATH="$PATH:/home/${USER}/go/bin/"
export PATH="$PATH:/home/${USER}/.local/share/flatpak/exports/bin/"
2023-06-05 15:41:35 +02:00
export XDG_DATA_DIRS="/usr/share/:/usr/local/share/:/var/lib/flatpak/exports/share/:/home/${USER}/.local/share/flatpak/exports/share/"
2023-06-05 15:41:35 +02:00
# Added by Toolbox App
export PATH="$PATH:/home/${USER}/.local/share/JetBrains/Toolbox/scripts"
2023-06-05 15:41:35 +02:00
#sway