2021-05-03 02:32:40 +02:00
|
|
|
export GOPATH=$HOME/utils/go
|
|
|
|
export CGO_ENABLED="1"
|
2020-11-02 19:38:16 +01:00
|
|
|
|
2021-05-03 02:32:40 +02:00
|
|
|
add_to_path() {
|
|
|
|
local p=$1
|
|
|
|
if [[ ! "$PATH" == *"$p"* ]]; then
|
|
|
|
export PATH="$p:$PATH"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
add_to_path "$HOME/.local/bin"
|
|
|
|
add_to_path "$HOME/utils/bin"
|
|
|
|
add_to_path "$HOME/.cargo/bin"
|
|
|
|
add_to_path "$GOPATH/bin"
|
|
|
|
|
|
|
|
export EDITOR='vim'
|
|
|
|
export TERM='xterm-256color'
|
|
|
|
export kee="surtur"
|
|
|
|
export SSH_KEY_PATH="$HOME/.ssh/$kee"
|
2020-11-02 19:38:16 +01:00
|
|
|
if [ ! -S ~/.ssh/ssh_auth_sock ]; then
|
|
|
|
eval `ssh-agent` > /dev/null
|
|
|
|
ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock
|
2021-05-03 02:32:40 +02:00
|
|
|
|
|
|
|
|
|
|
|
if [ ! -S $HOME/.ssh/ssh_auth_sock ]; then
|
|
|
|
eval `ssh-agent` > /dev/null
|
|
|
|
ln -sf "$SSH_AUTH_SOCK" $HOME/.ssh/ssh_auth_sock
|
2020-11-02 19:38:16 +01:00
|
|
|
fi
|
2021-05-03 02:32:40 +02:00
|
|
|
export SSH_AUTH_SOCK=$HOME/.ssh/ssh_auth_sock
|
2020-11-02 19:38:16 +01:00
|
|
|
|
|
|
|
if [ -n "$DESKTOP_SESSION" ];then
|
|
|
|
eval $(gnome-keyring-daemon --start)
|
|
|
|
export SSH_AUTH_SOCK
|
|
|
|
fi
|
|
|
|
|
|
|
|
export DOTNET_CLI_TELEMETRY_OPTOUT=1 # why do I always have to take care of this myself...
|
|
|
|
|
|
|
|
export ANDROID_HOME=$HOME/utils/Android/Sdk
|
|
|
|
export PATH=$PATH:$ANDROID_HOME/tools
|
|
|
|
export PATH=$PATH:$ANDROID_HOME/platform-tools
|
|
|
|
export ANDROID_SDK_ROOT=$ANDROID_HOME
|
|
|
|
export ANDROID_SDK_PATH=$ANDROID_HOME
|
|
|
|
export ANDROID_NDK_PATH=$ANDROID_HOME/ndk-bundle
|
|
|
|
|
|
|
|
export AndroidSdkPath=$ANDROID_HOME
|
|
|
|
export AndroidNdkPath=$ANDROID_NDK_PATH
|
2021-05-03 02:32:40 +02:00
|
|
|
|
|
|
|
|
|
|
|
if [[ -z $DISPLAY ]]; then
|
|
|
|
export QT_QPA_PLATFORMTHEME=wayland
|
|
|
|
export QT_QPA_PLATFORM=wayland
|
|
|
|
export QT_AUTO_SCREEN_SCALE_FACTOR=0
|
|
|
|
export MOZ_DBUS_REMOTE=1
|
|
|
|
export MOZ_USE_XINPUT2=1
|
|
|
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
|
|
|
export KITTY_ENABLE_WAYLAND=1
|
|
|
|
export BEMENU_BACKEND=wayland
|
|
|
|
export SDL_VIDEODRIVER=wayland
|
|
|
|
export NO_AT_BRIDGE=1
|
|
|
|
export TDESKTOP_USE_PORTAL=1
|
|
|
|
|
|
|
|
if [[ $(tty) == /dev/tty1 ]]; then
|
|
|
|
export XDG_CURRENT_DESKTOP=sway
|
|
|
|
exec sway
|
|
|
|
elif [[ "$(tty)" == "/dev/tty2" ]] && ! ps -e | grep -qw sway
|
|
|
|
MOZ_ENABLE_WAYLAND=1 QT_QPA_PLATFORM=wayland XDG_SESSION_TYPE=wayland exec dbus-run-session gnome-session
|
|
|
|
fi
|
|
|
|
fi
|