-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_bash_profile
35 lines (30 loc) · 1.08 KB
/
dot_bash_profile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#
# ~/.bash_profile
#
[[ -f ~/.login_env ]] && . ~/.login_env
[[ -f ~/.bashrc ]] && . ~/.bashrc
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
if [[ -z "$SSH_AUTH_SOCK" ]]; then
eval $(keychain --eval --quiet ~/.ssh/test_nopasswd)
fi
if [ -n "$AUTOSTART_GUI" ]; then
# Automatically start X or sway on TTY1
if [ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ]; then
if command -v sway &>/dev/null && [[ -n "$USE_SWAY" ]] ; then
# make sure toolkits are forced to use wayland
export GDK_BACKEND=wayland
export CLUTTER_BACKEND=wayland
export QT_QPA_PLATFORM=wayland-egl
export ECORE_EVAS_ENGINE=wayland_egl
export ELM_ENGINE=wayland_egl
export SDL_VIDEODRIVER=wayland
export _JAVA_AWT_WM_NONREPARENTING=1
exec sway
else
# Make Java apps look less shitty
export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
exec startx
true
fi
fi
fi