# if running bash and .bashrc exists, include it
# if [ -n "${BASH_VERSION}" ] && [ -f "${HOME}/.bashrc" ]; then
# 	. "${HOME}/.bashrc"
# fi

# start SSH agent & add key
if [ -z "${SSH_AGENT_PID}" ]; then
	agentfile="${TMPDIR:-/tmp}/ssh-agent-${USER}"
	if ! [ -e "${agentfile}" ]; then
		ssh-agent 2>/dev/null > "${agentfile}"
	fi
	. "${agentfile}" >/dev/null

	SSH_ASKPASS_REQUIRE=force SSH_ASKPASS="${HOME}/.local/bin/pas" ssh-add "${HOME}/.ssh/id_ed25519" >/dev/null
fi


# Add stuff to PATHs
# export PATH="$HOME/scripts:$HOME/.local/bin:$HOME/go/bin:$HOME/.cargo/bin:$HOME/.rbenv/bin:$PATH"
# export NODE_PATH=/usr/lib/node_modules/

# Program preferences
export EDITOR=micro
export PAGER=less
export TERMINAL=kitty
export MICRO_TRUECOLOR=1
# export QT_QPA_PLATFORMTHEME=gtk2
export QT_SCALE_FACTOR=1.33
export SUDO_ASKPASS="${HOME%/}"'/scripts/rofi/askpass'

# wayland
export GDK_BACKEND=wayland
export MOZ_DBUS_REMOTE=1 # https://wiki.archlinux.org/title/Firefox#Applications_on_Wayland_can_not_launch_Firefox

# set cursor shape to BEAM
printf "\033[6 q"
