summaryrefslogtreecommitdiff
path: root/.zprofile
diff options
context:
space:
mode:
Diffstat (limited to '.zprofile')
-rw-r--r--.zprofile43
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