1
0
Files
dotfiles/bash_profile

35 lines
614 B
Bash
Raw Permalink Normal View History

# Source .bashrc
[[ -f "$HOME/.bashrc" ]] && . "$HOME/.bashrc"
case $HOSTNAME in
# More can be added here in the future
kanto|tokyo)
HEADLESS=0
;;
*)
HEADLESS=1
;;
esac
if [[ $HEADLESS -eq 0 && -z $WAYLAND_DISPLAY && $XDG_VTNR -eq 1 ]];
then
export GTK_THEME=Adwaita:dark
export MOZ_ENABLE_WAYLAND=1
export QT_QPA_PLATFORM=wayland-egl
export QT_QPA_PLATFORMTHEME=qt5ct
export SDL_VIDEODRIVER=wayland
case $HOSTNAME in
kanto)
export WLR_NO_HARDWARE_CURSORS=1
# Desktop with nvidia gpu
exec sway --unsupported-gpu
;;
tokyo)
# Laptop with intel gpu
exec sway
;;
esac
fi