70 lines
1.8 KiB
Bash
70 lines
1.8 KiB
Bash
# Setup locale
|
|
export LANG=en_US.UTF-8
|
|
export LC_COLLATE=C
|
|
|
|
# Neovim go brrrr
|
|
export EDITOR=nvim
|
|
|
|
# wayland fixes
|
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
|
export MOZ_ENABLE_WAYLAND=1
|
|
export MOZ_USE_XINPUT2=1
|
|
export WLR_NO_HARDWARE_CURSORS=1
|
|
|
|
# xdg
|
|
export XDG_CONFIG_HOME=$HOME/.config
|
|
export XDG_DATA_HOME=$HOME/.local/share
|
|
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
|
|
export PATH=$PATH:/home/freya/.cargo/bin
|
|
export PATH=$PATH:/var/lib/flatpak/exports/bin
|
|
|
|
# ricing
|
|
export GTK_THEME=Lavanda-Sea-Dark
|
|
export TERMINAL=kitty
|
|
export MATRIX_HISTORY="/home/freya/.matrix_hist"
|
|
|
|
if [ -n "$TMUX" ]; then
|
|
return
|
|
fi
|
|
|
|
# graphics
|
|
#export NOUVEAU_USE_ZINK=1
|
|
#export __GLX_VENDOR_LIBRARY_NAME=mesa
|
|
#export __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json
|
|
#export MESA_LOADER_DRIVER_OVERRIDE=zink
|
|
#export GALLIUM_DRIVER=zink
|
|
|
|
clear
|
|
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
|
|
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
|
|
exec dbus-run-session Hyprland &> $HOME/.log/Hyprland
|
|
;;
|
|
"t")
|
|
exec cage -s kitty -- -o font_size=14 &> $HOME/.log/kitty
|
|
;;
|
|
"e")
|
|
exit
|
|
;;
|
|
"d")
|
|
break
|
|
;;
|
|
esac
|
|
done
|