export EDITOR="nvim"
export TERMINAL="kitty"
export LANG=en_US.UTF-8
export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
export XDG_CACHE_HOME=${XDG_CACHE_HOME:-~/.cache}
export XDG_DATA_HOME=${XDG_DATA_HOME:-~/.local/share}
export XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR:-~/.xdg}
export XDG_STATE_HOME=${XDG_STATE_HOME:-~/.local/state}
export ZDOTDIR=${ZDOTDIR:-$XDG_CONFIG_HOME/zsh}
export WAKATIME_HOME=$XDG_CONFIG_HOME/wakatime
export ZSH_WAKATIME_BIN=$XDG_CONFIG_HOME/wakatime/.wakatime/wakatime-cli
export W3M_DIR=$XDG_DATA_HOME/w3m
export RANDFILE=$XDG_CACHE_HOME/.rnd
export SOLARGRAPH_CACHE=$XDG_CACHE_HOME/solargraph
export NPM_CONFIG_USERCONFIG=$XDG_CONFIG_HOME/npm/npmrc
export NODE_REPL_HISTORY=$XDG_DATA_HOME/node_repl_history
export GRADLE_USER_HOME=$XDG_DATA_HOME/gradle
export GOPATH=$XDG_DATA_HOME/go
export DOCKER_CONFIG=$XDG_CONFIG_HOME/docker
export CARGO_HOME=$XDG_DATA_HOME/cargo
# bash history
export HISTFILE=${XDG_STATE_HOME}/bash/history
export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc-2.0"
export WGETRC="$XDG_CONFIG_HOME/wgetrc"
export JAVA_HOME="/usr/lib/jvm/default"
export BROWSER=zen-browser
unset SSH_AGENT_PID
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
	export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
fi
export GNUHOME="$XDG_DATA_HOME/gnupg"
export GPG_TTY=$(tty)
gpg-connect-agent updatestartuptty /bye >/dev/null

# Wayland/Sway specific environment variables
export MOZ_ENABLE_WAYLAND=1
export QT_QPA_PLATFORM=wayland-egl
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
export QT_QPA_PLATFORMTHEME=qt5ct
export QT_STYLE_OVERRIDE=kvantum
export CLUTTER_BACKEND=wayland
export GDK_BACKEND=wayland
export ECORE_EVAS_ENGINE=wayland_egl
export ELM_ENGINE=wayland_wgl
export SDL_VIDEODRIVER=wayland
export _JAVA_AWT_WM_NONREPARENTING=1
export XDG_CURRENT_DESKTOP=sway
export XDG_SESSION_TYPE=wayland
