2024-06-20 01:44:43 +00:00
|
|
|
# locale
|
2023-11-27 18:03:12 +00:00
|
|
|
export LANG=en_US.UTF-8
|
|
|
|
export LC_COLLATE=C
|
|
|
|
|
2024-06-20 01:44:43 +00:00
|
|
|
# wayland
|
2023-11-27 18:03:12 +00:00
|
|
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
|
|
|
export MOZ_ENABLE_WAYLAND=1
|
|
|
|
export MOZ_USE_XINPUT2=1
|
2024-06-20 01:44:43 +00:00
|
|
|
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-07-29 18:04:55 +00:00
|
|
|
export QT_QPA_PLATFORM="wayland;xcb"
|
2024-06-20 01:44:43 +00:00
|
|
|
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
|
2024-05-15 13:40:27 +00:00
|
|
|
|
|
|
|
# xdg
|
2024-06-20 01:44:43 +00:00
|
|
|
export XDG_RUNTIME_DIR=/run/user/$(id -u)
|
2023-11-28 14:07:49 +00:00
|
|
|
export XDG_CONFIG_HOME=$HOME/.config
|
|
|
|
export XDG_DATA_HOME=$HOME/.local/share
|
2024-04-05 19:11:06 +00:00
|
|
|
export XDG_DATA_DIRS=/usr/local/share:/usr/share
|
|
|
|
export XDG_DATA_DIRS=$XDG_DATA_DIRS:/var/lib/flatpak/exports/share
|
|
|
|
export XDG_DATA_DIRS=$XDG_DATA_DIRS:$HOME/.local/share/flatpak/exports/share
|
2024-06-20 01:44:43 +00:00
|
|
|
export PATH=$PATH:$HOME/.cargo/bin
|
2024-04-05 19:11:06 +00:00
|
|
|
export PATH=$PATH:/var/lib/flatpak/exports/bin
|
2023-11-28 14:07:49 +00:00
|
|
|
|
2024-06-20 01:44:43 +00:00
|
|
|
# programs
|
2024-04-05 19:11:06 +00:00
|
|
|
export TERMINAL=kitty
|
2024-06-20 01:44:43 +00:00
|
|
|
export EDITOR=nvim
|
|
|
|
export CC=$(which gcc)
|
|
|
|
export LD=$(which gcc)
|
|
|
|
|
|
|
|
# theming
|
|
|
|
export QT_QPA_PLATFORMTHEME=gtk2
|
2024-07-29 18:04:55 +00:00
|
|
|
export GTK_THEME=Mint-Y-Dark-Teal
|
2024-06-20 23:23:23 +00:00
|
|
|
export XCURSOR_THEME=Adwaita
|
|
|
|
export XCURSOR_SIZE=24
|
2023-11-27 18:03:12 +00:00
|
|
|
|
2024-07-29 18:04:55 +00:00
|
|
|
# nvidia
|
2024-08-04 22:48:36 +00:00
|
|
|
#export LIBVA_DRIVER_NAME=nvidia
|
|
|
|
#export GBM_BACKEND=nvidia-drm
|
|
|
|
#export __GLX_VENDOR_LIBRARY_NAME=nvidia
|
2024-07-29 18:04:55 +00:00
|
|
|
|
2024-01-24 22:22:43 +00:00
|
|
|
if [ -n "$TMUX" ]; then
|
|
|
|
return
|
|
|
|
fi
|
|
|
|
|
2024-01-22 23:34:10 +00:00
|
|
|
clear
|
2024-01-24 22:22:43 +00:00
|
|
|
printf "\t\n\t\n\t\n\t\n"
|
|
|
|
echo "\tPlease select an environment..."
|
|
|
|
echo "\t[S]way [H]yprland [T]erminal [E]xit"
|
|
|
|
printf "\t\n\t\n\t"
|
|
|
|
|
|
|
|
while true; do
|
|
|
|
stty raw -echo
|
|
|
|
choice=$(dd bs=1 count=1 2> /dev/null)
|
|
|
|
stty -raw echo
|
2024-07-29 18:04:55 +00:00
|
|
|
launch() {
|
|
|
|
mkdir -p "$HOME/.log"
|
|
|
|
echo "Launching $1..."
|
|
|
|
export XDG_CURRENT_DESKTOP="$1"
|
|
|
|
exec dbus-run-session "$1" &> "$HOME/.log/$1"
|
|
|
|
}
|
2024-01-24 22:22:43 +00:00
|
|
|
case "$choice" in
|
|
|
|
"s")
|
2024-07-29 18:04:55 +00:00
|
|
|
launch sway
|
2024-01-24 22:22:43 +00:00
|
|
|
;;
|
|
|
|
"h")
|
2024-07-29 18:04:55 +00:00
|
|
|
launch Hyprland
|
2024-01-24 22:22:43 +00:00
|
|
|
;;
|
|
|
|
"t")
|
2024-04-05 19:11:06 +00:00
|
|
|
exec cage -s kitty -- -o font_size=14 &> $HOME/.log/kitty
|
2024-01-24 22:22:43 +00:00
|
|
|
;;
|
|
|
|
"e")
|
|
|
|
exit
|
|
|
|
;;
|
2024-04-05 19:11:06 +00:00
|
|
|
"d")
|
|
|
|
break
|
|
|
|
;;
|
2024-01-24 22:22:43 +00:00
|
|
|
esac
|
|
|
|
done
|