2022-10-17 21:33:37 +02:00
|
|
|
export GOPATH=$HOME/go
|
2021-05-03 02:32:40 +02:00
|
|
|
export CGO_ENABLED="1"
|
2020-11-02 19:38:16 +01:00
|
|
|
|
2022-08-29 00:30:29 +02:00
|
|
|
# make home-manager not manage the shell configuration
|
|
|
|
HMVARSFILE="$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
|
|
|
if [ -f "$HMVARSFILE" ]; then . "$HMVARSFILE"; fi
|
|
|
|
|
2021-05-03 02:32:40 +02:00
|
|
|
add_to_path() {
|
|
|
|
local p=$1
|
|
|
|
if [[ ! "$PATH" == *"$p"* ]]; then
|
|
|
|
export PATH="$p:$PATH"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2022-03-26 01:58:06 +01:00
|
|
|
add_to_path "/usr/local/goroot/bin"
|
|
|
|
add_to_path "$HOME/.asdf/shims"
|
|
|
|
add_to_path "$HOME/.arkade/bin"
|
2021-05-03 02:32:40 +02:00
|
|
|
add_to_path "$HOME/.cargo/bin"
|
|
|
|
add_to_path "$GOPATH/bin"
|
2022-03-26 01:58:06 +01:00
|
|
|
add_to_path "/opt/metasploit-framework/bin"
|
|
|
|
add_to_path "$HOME/.local/share/flatpak/exports/bin"
|
|
|
|
add_to_path "/var/lib/flatpak/exports/bin"
|
|
|
|
add_to_path "$HOME/.local/share/JetBrains/Toolbox/bin"
|
2021-05-03 02:32:40 +02:00
|
|
|
|
|
|
|
export EDITOR='vim'
|
|
|
|
export TERM='xterm-256color'
|
2023-02-21 19:55:43 +01:00
|
|
|
export kee="$HOST"
|
2021-05-03 02:32:40 +02:00
|
|
|
export SSH_KEY_PATH="$HOME/.ssh/$kee"
|
2022-10-17 21:07:39 +02:00
|
|
|
|
2020-11-02 19:38:16 +01:00
|
|
|
if [ ! -S ~/.ssh/ssh_auth_sock ]; then
|
2022-10-17 21:08:17 +02:00
|
|
|
eval `ssh-agent -t4h` > /dev/null
|
2020-11-02 19:38:16 +01:00
|
|
|
ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock
|
2022-10-17 21:07:39 +02:00
|
|
|
fi
|
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
|
|
|
|
2022-10-17 21:11:50 +02:00
|
|
|
if ! [ -f /run/.containerenv ]; then
|
|
|
|
pgrep -x -U "$(id -u)" gnome-keyring-d || export $(gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
|
|
|
|
fi
|
2020-11-02 19:38:16 +01:00
|
|
|
|
|
|
|
export DOTNET_CLI_TELEMETRY_OPTOUT=1 # why do I always have to take care of this myself...
|
|
|
|
|
2022-03-26 01:58:06 +01:00
|
|
|
export ANDROID_SDK_ROOT="$HOME/utils/Android/Sdk"
|
|
|
|
export ANDROID_SDK_PATH=$ANDROID_SDK_ROOT
|
|
|
|
export ANDROID_NDK_PATH=$ANDROID_SDK_ROOT/ndk-bundle
|
|
|
|
export ANDROID_NDK_HOME=$ANDROID_NDK_PATH
|
|
|
|
export AndroidSdkPath=$ANDROID_SDK_ROOT
|
2020-11-02 19:38:16 +01:00
|
|
|
export AndroidNdkPath=$ANDROID_NDK_PATH
|
2022-03-26 01:58:06 +01:00
|
|
|
add_to_path "$ANDROID_SDK_ROOT/tools"
|
|
|
|
add_to_path "$ANDROID_SDK_ROOT/platform-tools"
|
2021-05-03 02:32:40 +02:00
|
|
|
|
2022-10-17 21:31:45 +02:00
|
|
|
unfunction add_to_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
|
2021-06-11 23:35:09 +02:00
|
|
|
export XDG_SESSION_TYPE=wayland
|
2022-07-03 11:50:16 +02:00
|
|
|
export LIBVA_DRIVER_NAME="i965"
|
2021-05-03 02:32:40 +02:00
|
|
|
|
2023-02-21 19:56:15 +01:00
|
|
|
test -f ~/.zsh/bemenu-dracula/bemenu-dracula && . ~/.zsh/bemenu-dracula/bemenu-dracula
|
2022-03-26 00:29:02 +01:00
|
|
|
|
2021-05-03 02:32:40 +02:00
|
|
|
if [[ $(tty) == /dev/tty1 ]]; then
|
2022-07-03 11:51:52 +02:00
|
|
|
export GTK_IM_MODULE=ibus
|
|
|
|
export QT_IM_MODULE=ibus
|
|
|
|
export XMODIFIERS=@im=ibus
|
2021-05-03 02:32:40 +02:00
|
|
|
export XDG_CURRENT_DESKTOP=sway
|
2022-07-03 11:53:51 +02:00
|
|
|
exec systemd-cat --identifier=sway sway > $XDG_RUNTIME_DIR/sway.log 2>&1
|
2021-06-11 23:35:09 +02:00
|
|
|
elif [[ $(tty) == /dev/tty2 ]]; then
|
|
|
|
export MOZ_ENABLE_WAYLAND=1
|
|
|
|
export XDG_SESSION_TYPE=wayland
|
|
|
|
exec systemd-cat --identifier=gnome-session gnome
|
2021-05-03 02:32:40 +02:00
|
|
|
fi
|
|
|
|
fi
|