-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.profile
32 lines (27 loc) · 796 Bytes
/
.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
#!/bin/bash
export EDITOR=vim
if [[ -z "$SCHROOT_CHROOT_NAME" ]]; then
if [[ $(tty) == "/dev/tty2" ]]; then
exec startx
elif [[ $(tty) == "/dev/tty3" ]]; then
echo "running sway"
export __GL_GSYNC_ALLOWED=0
export __GL_VRR_ALLOWED=0
export WLR_DRM_NO_ATOMIC=1
export QT_AUTO_SCREEN_SCALE_FACTOR=1
export QT_QPA_PLATFORM=wayland
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
export GDK_BACKEND=wayland
export XDG_CURRENT_DESKTOP=sway
export GBM_BACKEND=nvidia-drm
export __GLX_VENDOR_LIBRARY_NAME=nvidia
export MOZ_ENABLE_WAYLAND=1
export WLR_NO_HARDWARE_CURSORS=1
sway --unsupported-gpu
fi
fi
if [[ -d "/opt/homebrew" ]]; then
echo "directory homebrew exists"
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
source ~/.bashrc