dotfiles-guix/home/config/zsh/zprofile

105 lines
2.6 KiB
Text
Raw Permalink Normal View History

2024-06-22 02:52:21 +00:00
# locale
export LANG=en_US.UTF-8
export LC_COLLATE=C
# wayland
export _JAVA_AWT_WM_NONREPARENTING=1
export MOZ_ENABLE_WAYLAND=1
export MOZ_USE_XINPUT2=1
export WLR_NO_HARDWARE_CURSORS=0
export GDK_BACKEND=wayland,x11
export SDL_VIDEODRIVER=wayland
export CLUTTER_BACKEND=wayland
export ELM_DISPLAY=wl
export QT_AUTO_SCREEN_SCALE_FACTOR=1
2024-06-23 19:35:14 +00:00
export QT_QPA_PLATFORM="wayland;xcb"
2024-06-22 02:52:21 +00:00
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
# xdg
export XDG_RUNTIME_DIR=/run/user/$(id -u)
export XDG_SESSION_TYPE=wayland
export XDG_CURRENT_DESKTOP=sway
export LIBSEAT_BACKEND=logind
# programs
export TERMINAL=kitty
export EDITOR=nvim
export CC=$(which gcc)
export LD=$(which gcc)
2024-10-18 04:04:03 +00:00
# nvidia
#export LIBVA_DRIVER_NAME=nvidia
#export GBM_BACKEND=nvidia-drm
#export __GLX_VENDOR_LIBRARY_NAME=nvidia
#export __NV_PRIME_RENDER_OFFLOAD=1
#export __VK_LAYER_NV_optimus=NVIDIA_only
# nvk
#export MESA_LOADER_DRIVER_OVERRIDE=zink
#export NOUVEAU_USE_ZINK=1
2024-06-22 02:52:21 +00:00
# ricing
export QT_QPA_PLATFORM_THEME=gtk2
2024-08-11 02:39:40 +00:00
export GTK_THEME=Orchis-Teal-Dark
2024-06-22 02:52:21 +00:00
export XCURSOR_THEME=Adwaita
export XCURSOR_SIZE=24
# guix
export GUIX_PROFILE=$HOME/.guix-profile
$HOME/.guix-home/on-first-login
. $HOME/.guix-home/setup-environment
# nix
export NIX_PROFILE=$HOME/.nix-profile
export XDG_DATA_DIRS=$XDG_DATA_DIRS:$NIX_PROFILE/share
export PATH=$PATH:$NIX_PROFILE/bin
export LIBRARY_PATH=$LIBRARY_PATH:$NIX_PROFILE/lib
# local
export LOCAL_PROFILE=$HOME/.local
export XDG_DATA_DIRS=$XDG_DATA_DIRS:$LOCAL_PROFILE/share
2024-06-23 18:47:05 +00:00
export XDG_DATA_DIRS=$XDG_DATA_DIRS:/var/lib/flatpak/exports/share
export XDG_DATA_DIRS=$XDG_DATA_DIRS:$LOCAL_PROFILE/share/flatpak/exports/share
2024-06-22 02:52:21 +00:00
export PATH=$PATH:$LOCAL_PROFILE/bin
# 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
if [ -n "$TMUX" ]; then
return
fi
clear
printf "\t\n\t\n\t\n\t\n"
printf "\tPlease select an environment...\n"
printf "\t[S]way [H]yprland [T]erminal [E]xit\n"
printf "\t\n\t\n\t"
while true; do
stty raw -echo
choice=$(dd bs=1 count=1 2> /dev/null)
stty -raw echo
case "$choice" in
"s")
echo "Launching sway..."
export XDG_CURRENT_DESKTOP=sway
exec dbus-run-session sway &> $HOME/.log/sway
;;
"h")
echo "Launching Hyprland..."
export XDG_CURRENT_DESKTOP=Hyprland
2024-10-22 12:33:13 +00:00
exec dbus-run-session Hyprland &> $HOME/.log/Hyprland
2024-06-22 02:52:21 +00:00
;;
"t")
exec cage -s kitty -- -o font_size=14 &> $HOME/.log/kitty
;;
"e")
exit
;;
"d")
break
;;
esac
done