dotfiles/.zprofile

37 lines
1.1 KiB
Plaintext
Raw Normal View History

2020-04-27 15:14:37 +02:00
# Adds `~/.local/bin` to $PATH
export PATH="$PATH:$(du "$HOME/.local/bin/" | cut -f2 | tr '\n' ':' | sed 's/:*$//')"
2020-09-07 15:26:57 +02:00
# Session
export XDG_SESSION_TYPE=wayland
export XDG_SESSION_DESKTOP=sway
export XDG_CURRENT_DESKTOP=sway
2020-04-27 15:14:37 +02:00
# Default programs:
export EDITOR="nvim"
2020-09-07 15:26:57 +02:00
export TERMINAL="kitty"
2021-02-11 17:07:37 +01:00
export BROWSER="chromium --enable-features=UseOzonePlatform --ozone-platform=wayland"
2020-09-07 15:26:57 +02:00
export READER="zathura"
2020-04-27 15:14:37 +02:00
2020-09-07 15:26:57 +02:00
# Env vars
export CLUTTER_BACKEND=wayland
export QT_QPA_PLATFORM=wayland-egl
export ECORE_EVAS_ENGINE=wayland-egl
export ELM_ENGINE=wayland_egl
export SDL_VIDEODRIVER=wayland
export NO_AT_BRIDGE=1
export QT_QPA_PLATFORMTHEME="qt5ct"
export _JAVA_AWT_WM_NONREPARENTING=1
2020-09-07 15:26:57 +02:00
export MOZ_ENABLE_WAYLAND=1
2021-02-11 17:07:37 +01:00
export MOZ_DBUS_REMOTE=1
export TDESKTOP_USE_PORTAL=1
2020-04-27 15:14:37 +02:00
# ~/ Clean-up:
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CACHE_HOME="$HOME/.cache"
2021-02-11 17:07:37 +01:00
export XDG_RUNTIME_DIR="$HOME/.local/temp"
2020-04-27 15:14:37 +02:00
# Start graphical server on tty1 if not already running.
[ "$(tty)" = "/dev/tty1" ] && ! ps -e | grep -qw Xorg && exec sway
2021-02-11 17:07:37 +01:00
[ "$(tty)" = "/dev/tty2" ] && ! ps -e | grep -qw sway && exec startx