for file in ~/.config/environment.d/*.conf do while read -r line do varname=${line%=*} value=${${(e)line#*=}//\"} export $varname="${value}" done < $file done #notmutch export NOTMUCH_CONFIG="${HOME}/.config/notmuch/config" export PATH=~/.local/bin:$PATH unset DEBUGINFOD_URLS if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then export QT_QPA_PLATFORM="wayland-egl" export QT_WAYLAND_DISABLE_WINDOWDECORATION=1 export MOZ_ENABLE_WAYLAND=1 export QT_QPA_PLATFORMTHEME="gtk3" export NO_AT_BRIDGE=1 export XDG_SESSION_TYPE=wayland export XDG_CURRENT_DESKTOP=sway exec ~/.local/bin/sway.sh fi