diff options
| author | John Turner <jturner.usa@gmail.com> | 2025-12-11 16:26:23 -0500 |
|---|---|---|
| committer | John Turner <jturner.usa@gmail.com> | 2025-12-11 16:26:23 -0500 |
| commit | 473c79e8a283af7b4ed4d89140ccfeb521804a22 (patch) | |
| tree | a0805d030e88e3c0e582676a90026e746addd0cd /.zprofile | |
| parent | d31a4db25b12c5191bbf68eb0ab9d3d75c2779f6 (diff) | |
| download | zshrc-master.tar.gz | |
Diffstat (limited to '.zprofile')
| -rw-r--r-- | .zprofile | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/.zprofile b/.zprofile new file mode 100644 index 0000000..0cdc81e --- /dev/null +++ b/.zprofile @@ -0,0 +1,43 @@ +export PATH="${HOME}/.local/bin:${PATH}" + +export GRIM_DEFAULT_DIR=${HOME}/tmp + +export MOZ_ENABLE_WAYLAND=1 + +# rust stuff +export CARGO=${HOME}/.local/bin/cargo +export CARGO_NET_OFFLINE="true" +export CARGO_BUILD_JOBS=$(nproc) + +# python +export PYTHONDONTWRITEBYTECODE=1 +export PYTHONPATH=${HOME}/.local/lib/python/site-packages + +# software rendering +#export MESA_LOADER_DRIVER_OVERRIDE=llvmpipe +#export WLR_NO_HARDWARE_CURSORS=1 +#export LIBGL_ALWAYS_SOFTWARE=1 +#export GALLIUM_DRIVER=llvmpipe +#export WLR_RENDERER=pixman +#export WLR_RENDERER_ALLOW_SOFTWARE=1 + +# nvidia drivers fix +export WLR_RENDERER=vulkan + +# ssh agent +#export SSH_AUTH_SOCK=/dev/null + +# start window manager +if [[ $(tty) = "/dev/tty1" && $(id --user) = "1000" ]]; then + + if [[ -z ${XDG_RUNTIME_DIR} ]]; then + export XDG_RUNTIME_DIR=/tmp/runtime/${UID} + mkdir -p ${XDG_RUNTIME_DIR} + chmod 700 ${XDG_RUNTIME_DIR} + fi + + + if [[ ! -f ${HOME}/tmp/.swaylog ]]; then + exec &>~/tmp/.swaylog dbus-launch --exit-with-session sway --unsupported-gpu --verbose + fi +fi |
