61 lines
1.7 KiB
Bash
61 lines
1.7 KiB
Bash
# Setup locale
|
|
export LANG=en_US.UTF-8
|
|
export LC_COLLATE=C
|
|
|
|
# Make sure programs know to use wayland
|
|
export QT_QPA_PLATFORM=xcb # fuck qt
|
|
export ELM_DISPLAY=wl
|
|
export SDL_VIDEODRIVER=wayland
|
|
export MOZ_ENABLE_WAYLAND=1
|
|
|
|
# Setup the desktop XDG session
|
|
export XDG_RUNTIME_DIR=/run/user/$(id -u)
|
|
export XDG_SESSION_TYPE=wayland
|
|
export XDG_CURRENT_DESKTOP=sway
|
|
export LIBSEAT_BACKEND=logind
|
|
|
|
# Neovim go brrrr
|
|
export EDITOR=nvim
|
|
|
|
# Fix java applications going fucking crazy on wayland
|
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
|
|
|
# ricing
|
|
#export GTK_THEME=Catppuccin-Macchiato-Standard-Sapphire-dark
|
|
export GTK_THEME=Lavanda-Sea-Dark
|
|
#export GTK_THEME=Adwaita-dark
|
|
|
|
# Set terminal
|
|
export TERMINAL=alacritty
|
|
|
|
# Setup Guix Environment
|
|
export GUIX_PROFILE=$HOME/.guix-profile
|
|
$HOME/.guix-home/on-first-login
|
|
. $HOME/.guix-home/setup-environment
|
|
|
|
# Setup Nix Environment
|
|
export NIX_PROFILE=$HOME/.nix-profile
|
|
export XDG_DATA_DIRS=$XDG_DATA_DIRS:$NIX_PROFILE/share
|
|
export XDG_DATA_DIRS=$XDG_DATA_DIRS:/var/lib/flatpak/exports/share
|
|
export XDG_DATA_DIRS=$XDG_DATA_DIRS:/home/tylerm/.local/share/flatpak/exports/share
|
|
export PATH=$PATH:$NIX_PROFILE/bin
|
|
export LIBRARY_PATH=$LIBRARY_PATH:$NIX_PROFILE/lib
|
|
|
|
# Setup User Environment
|
|
export LOCAL_PROFILE=$HOME/.local
|
|
export XDG_DATA_DIRS=$XDG_DATA_DIRS:$LOCAL_PROFILE/share
|
|
export PATH=$PATH:$LOCAL_PROFILE/bin
|
|
|
|
# Setup Compilers
|
|
export CC=$(which gcc)
|
|
export LD=$(which gcc)
|
|
|
|
# Setup certs
|
|
export SSL_CERT_FILE=/run/current-system/profile/etc/ssl/certs/ca-certificates.crt
|
|
export SSL_CERT_DIR=/run/current-system/profile/etc/ssl/certs
|
|
|
|
# start sway only once and on the primary tty
|
|
if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
|
|
# dbus-run-session Hyprland &> .log/hyprland
|
|
exec dbus-run-session sway &> .log/sway
|
|
fi
|