-
Notifications
You must be signed in to change notification settings - Fork 0
/
.profile
executable file
·66 lines (54 loc) · 2.54 KB
/
.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# ==> Some common variables
export HOSTNAME="$(hostname)"
# ==> Default programs
export EDITOR="nvim"
export TERMINAL="foot"
# ==> XDG
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_DATA_DIRS="$HOME/.local/share:$HOME/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_STATE_HOME="$HOME/.local/state"
# ==> PATH
export PATH="$HOME/.local/bin:$PATH"
export PATH="$HOME/.local/bin/antibody:$PATH"
export PATH="$HOME/.local/share/cargo/bin:$PATH"
# https://wiki.archlinux.org/title/Blender#HIP_on_AMD_open_source_drivers
[ -d "/opt/rocm/bin" ] && export PATH="/opt/rocm/bin:$PATH"
# ==> $HOME cleanup
export LESSHISTFILE="-"
export WGETRC="${XDG_CONFIG_HOME:-$HOME/.config}/wget/wgetrc"
export GOPATH="${XDG_DATA_HOME:-$HOME/.local/share}/go"
export CARGO_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/cargo"
export RUSTUP_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/rustup"
export WINEPREFIX="${XDG_DATA_HOME:-$HOME/.local/share}/wineprefixes/default"
export GHCUP_USE_XDG_DIRS=true
# ==> Privacy
export DOTNET_CLI_TELEMETRY_OPTOUT=1
# ==> Nvidia wayland stuff
[ "$HOSTNAME" = "bbaoportable" ] && export LIBVA_DRIVER_NAME=nvidia
[ "$HOSTNAME" = "bbaoportable" ] && export GBM_BACKEND=nvidia-drm
[ "$HOSTNAME" = "bbaoportable" ] && export __GLX_VENDOR_LIBRARY_NAME=nvidia
[ "$HOSTNAME" = "bbaoportable" ] && export WLR_NO_HARDWARE_CURSORS=1
# ==> Wayland
[ "$XDG_SESSION_TYPE" = "wayland" ] && export MOZ_ENABLE_WAYLAND=1
[ "$XDG_SESSION_TYPE" = "wayland" ] && export WLR_RENDERER=vulkan
[ "$XDG_SESSION_TYPE" = "wayland" ] && export SDL_VIDEODRIVER=wayland
[ "$XDG_SESSION_TYPE" = "wayland" ] && export _JAVA_AWT_WM_NONREPARENTING=1
echo $DESKTOP_SESSION | grep sway > /dev/null && export XDG_CURRENT_DESKTOP=sway
# ==> Hardware accel
[ "$HOSTNAME" = "bobafw" ] && export VDPAU_DRIVER=radeonsi
# ==> GNOME Keyring
# FIXME: if https://github.com/sddm/sddm/issues/1276 solved, this can be removed
# gcr-ssh-agent.socket sets SSH_AUTH_SOCK in systemd environment
export SSH_AUTH_SOCK=/run/user/$(id -u)/gcr/ssh
# ==> Qt
[ "$XDG_CURRENT_DESKTOP" != "KDE" ] && export QT_QPA_PLATFORMTHEME=qt5ct
# wlroots debug
#export WLR_SCENE_DEBUG_DAMAGE=rerender
#export WLR_SCENE_DEBUG_DAMAGE=highlight
#export WLR_XWAYLAND=~/git-repos/xserver/build/hw/xwayland/Xwayland
# ==> Docker
systemctl --user is-active --quiet docker.socket
[ "$?" -eq 0 ] && export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/docker.sock
[ "$HOSTNAME" = "bobafw" ] && export CROSS_ROOTLESS_CONTAINER_ENGINE=1