dotfiles/.profile

34 lines
1 KiB
Text
Raw Permalink Normal View History

2024-05-28 20:42:24 +02:00
if [ -z "$DOTPROFILE_SOURCED" ]; then
export DOTPROFILE_SOURCED=1
#export GTK_USE_PORTAL=1 this causes an issue with non-80/443 ports in Firefox
export MOZ_USE_XINPUT2=1
export MOZ_X11_EGL=1
#export MOZ_DISABLE_RDD_SANDBOX=1
export SDL_VIDEO_ALLOW_SCREENSAVER=1
export GDK_BACKEND=$XDG_SESSION_TYPE
if [ "$XDG_SESSION_TYPE" == "wayland" ]; then
export MOZ_ENABLE_WAYLAND=1
export QT_QPA_PLATFORM=wayland
fi
# Disable PC speaker
#[[ $DISPLAY ]] && xset b off &&
# Allow running graphical apps from Distrobox
#xhost +si:localuser:$USER
export GHCUP_INSTALL_BASE_PREFIX=$HOME/.ghcup
[ -x $GHCUP_INSTALL_BASE_PREFIX/bin ] && PATH=$GHCUP_INSTALL_BASE_PREFIX/bin:$PATH || true
[ -x $HOME/.yarn/bin ] && PATH=$HOME/.yarn/bin:$PATH || true
[ -x $HOME/.cargo/bin ] && PATH=$HOME/.cargo/bin:$PATH || true
#[ -x $HOME/.platformio/penv/bin ] && PATH=$HOME/.platformio/penv/bin:$PATH || true
export PATH
export GIT_EXTERNAL_DIFF=difft
fi