export PATH=$PATH:$HOME/.local/bin # Wayland-specific #export GDK_BACKEND=wayland export EGL_PLATFORM=wayland export CLUTTER_PLATFORM=wayland export SDL_VIDEODRIVER=wayland export QT_QPA_PLATFORM=wayland-egl export QT_WAYLAND_DISABLE_WINDOWDECORATION=0 export QT_QPA_PLATFORMTHEME="qt5ct" export _JAVA_AWT_WM_NONREPARENTING=1 export MOZ_ENABLE_WAYLAND=1 # Fixes Qt's webview scaling export QT_SCALE_FACTOR_ROUNDING_POLICY=RoundPreferFloor # Input method export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx export SDL_IM_MODULE=fcitx export XMODIFIERS='@im=fcitx' # User-specific environment and startup programs: export LANG=en_US.UTF-8 export TERMINAL=alacritty export EDITOR="nvim" export PAGER="less -R -j.5" export MANPAGER='nvim +Man!' export BROWSER=qutebrowser export MANWIDTH=80 export SCROT_DIR=$HOME/pics/screenshots/ export VREC_DIR=$HOME/vids/recordings/ export AREC_DIR=$HOME/audio/recordings/ # Sanely export XDG Base dir variables eval "$(sed 's/^[^#].*/export &/g;t;d' ~/.config/user-dirs.dirs)" # Le cleaner home export LESSHISTFILE="-" export ZDOTDIR="$XDG_CONFIG_HOME/zsh" export INPUTRC="$XDG_CONFIG_HOME/zsh/inputrc" export WEECHAT_HOME="$XDG_CONFIG_HOME/weechat" export CARGO_HOME="$XDG_DATA_HOME/cargo" export RUSTUP_HOME="$XDG_DATA_HOME/rustup" export PASSWORD_STORE_DIR="$XDG_DATA_HOME/password-store" export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc-2.0" export GOPATH="$XDG_DATA_HOME/go" export PATH=$PATH:$GOPATH/bin export NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuchrc" eval "$(dircolors "$HOME/.config/dir_colors")" . "$HOME/.config/lf/icons" # Start sway automatically upon login on tty1 or tty2 if [ -z $DISPLAY ]; then if [ $(tty) = /dev/tty1 ] || [ $(tty) = /dev/tty2 ]; then exec dbus-run-session sway 2> ~/.cache/sway.log elif [ $(tty) = /dev/tty3 ]; then pipewire & wireplumber & pipewire-pulse & pipewire-jack & exec dbus-run-session niri --session fi fi