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
|
|
|
|
2023-08-18 17:09:44 +02:00
|
|
|
local __paths=(
|
|
|
|
"/usr/local/goroot/bin"
|
|
|
|
"$HOME/.asdf/shims"
|
|
|
|
"$HOME/.arkade/bin"
|
|
|
|
"$HOME/.cargo/bin"
|
|
|
|
"$GOPATH/bin"
|
|
|
|
"/opt/metasploit-framework/bin"
|
|
|
|
"$HOME/.local/share/flatpak/exports/bin"
|
|
|
|
"/var/lib/flatpak/exports/bin"
|
|
|
|
"$HOME/.local/share/JetBrains/Toolbox/bin"
|
|
|
|
"$HOME/.local/share/JetBrains/Toolbox/scripts"
|
|
|
|
)
|
|
|
|
|
|
|
|
for p in $__paths[@]; do
|
|
|
|
add_to_path $p
|
|
|
|
done
|
|
|
|
unset __paths
|
|
|
|
|
2021-05-03 02:32:40 +02:00
|
|
|
|
|
|
|
export EDITOR='vim'
|
|
|
|
export TERM='xterm-256color'
|
2023-07-10 05:37:57 +02:00
|
|
|
export kee="$HOSTNAME"
|
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
|
|
|
|
|
|
|
|
|
|
|
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
|
2023-07-10 05:37:57 +02:00
|
|
|
# proper theme support?
|
|
|
|
# export QT_QPA_PLATFORMTHEME=qt5ct
|
2021-05-03 02:32:40 +02:00
|
|
|
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
|
2023-07-10 05:37:57 +02:00
|
|
|
if [[ "${HOSTNAME}" == "surtur" ]]; then
|
|
|
|
export LIBVA_DRIVER_NAME="i965"
|
|
|
|
fi
|
2021-05-03 02:32:40 +02:00
|
|
|
|
2023-07-10 05:37:57 +02:00
|
|
|
test -f ~/.zsh/bemenu-dracula/bemenu-dracula && . ~/.zsh/bemenu-dracula/bemenu-dracula
|
2022-03-26 00:29:02 +01:00
|
|
|
|
2023-07-10 05:37:57 +02:00
|
|
|
# if [[ $(tty) == /dev/tty1 ]]; then
|
|
|
|
if [ -z "${WAYLAND_DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
|
2022-07-03 11:51:52 +02:00
|
|
|
export GTK_IM_MODULE=ibus
|
|
|
|
export QT_IM_MODULE=ibus
|
|
|
|
export XMODIFIERS=@im=ibus
|
2023-07-10 05:37:57 +02:00
|
|
|
export SAL_USE_VCLPLUGIN=gtk3 # for libreoffice
|
2021-05-03 02:32:40 +02:00
|
|
|
export XDG_CURRENT_DESKTOP=sway
|
2023-07-10 05:37:57 +02:00
|
|
|
if [[ "${HOSTNAME}" == "leo" ]]; then
|
|
|
|
# needs vulkan libs.
|
|
|
|
export WLRRENDERER=vulkan
|
|
|
|
fi
|
|
|
|
# exec systemd-cat --identifier=sway sway > /var/tmp/sway.log 2>&1
|
|
|
|
sway -d -V >> /var/tmp/sway.log 2>&1
|
|
|
|
elif [ "${XDG_VTNR}" -eq 2 ]; then
|
2021-06-11 23:35:09 +02:00
|
|
|
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
|