2025-01-03 14:03:08 +00:00
|
|
|
# =================================================================== LOCALE ==
|
2024-06-22 02:52:21 +00:00
|
|
|
export LANG=en_US.UTF-8
|
|
|
|
export LC_COLLATE=C
|
|
|
|
|
2025-01-03 14:03:08 +00:00
|
|
|
# ================================================================== PROFILE ==
|
|
|
|
export XDG_RUNTIME_DIR="/run/user/$(id -u)"
|
|
|
|
export LIBSEAT_BACKEND=logind
|
|
|
|
|
|
|
|
# Guix
|
|
|
|
. "$HOME/.guix-home/setup-environment"
|
|
|
|
"$HOME/.guix-home/on-first-login"
|
|
|
|
export GUIX_PROFILE
|
|
|
|
|
|
|
|
# NixOS
|
|
|
|
if [ -f "/run/current-system/profile/etc/profile.d/nix.sh" ]; then
|
|
|
|
source /run/current-system/profile/etc/profile.d/nix.sh
|
|
|
|
fi
|
|
|
|
|
|
|
|
# ~/.local
|
|
|
|
export PATH="$PATH:$HOME/.local/bin"
|
|
|
|
export XDG_DATA_DIRS="$XDG_DATA_DIRS:$HOME/.local/share"
|
|
|
|
|
|
|
|
# =================================================================== CONFIG ==
|
|
|
|
|
2024-06-22 02:52:21 +00:00
|
|
|
# wayland
|
2025-01-03 14:03:08 +00:00
|
|
|
export CLUTTER_BACKEND=wayland
|
|
|
|
export ELM_DISPLAY=wl
|
|
|
|
export XDG_SESSION_TYPE=wayland
|
|
|
|
export GDK_BACKEND=wayland,x11
|
|
|
|
export SDL_VIDEODRIVER=wayland
|
|
|
|
|
|
|
|
# java
|
2024-06-22 02:52:21 +00:00
|
|
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
2025-01-03 14:03:08 +00:00
|
|
|
|
|
|
|
# mozilla
|
2024-06-22 02:52:21 +00:00
|
|
|
export MOZ_ENABLE_WAYLAND=1
|
|
|
|
export MOZ_USE_XINPUT2=1
|
2025-01-03 14:03:08 +00:00
|
|
|
|
|
|
|
# qt
|
2024-06-23 19:35:14 +00:00
|
|
|
export QT_QPA_PLATFORM="wayland;xcb"
|
2025-01-03 14:03:08 +00:00
|
|
|
export QT_AUTO_SCREEN_SCALE_FACTOR=1
|
2024-06-22 02:52:21 +00:00
|
|
|
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
|
|
|
|
|
|
|
|
# programs
|
|
|
|
export TERMINAL=kitty
|
|
|
|
export EDITOR=nvim
|
2025-01-03 14:03:08 +00:00
|
|
|
export CC="$(which gcc)"
|
|
|
|
export LD="$(which gcc)"
|
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
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2025-01-03 14:03:08 +00:00
|
|
|
# ==================================================================== ENTRY ==
|
|
|
|
|
|
|
|
# dont prompt tmux to start
|
|
|
|
# another graphical env
|
2024-06-22 02:52:21 +00:00
|
|
|
if [ -n "$TMUX" ]; then
|
|
|
|
return
|
|
|
|
fi
|
|
|
|
|
2025-01-03 14:03:08 +00:00
|
|
|
# prompt the user logging in (me)
|
|
|
|
# for which graphical env i want to use
|
|
|
|
|
2024-06-22 02:52:21 +00:00
|
|
|
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
|