summaryrefslogtreecommitdiff
path: root/.profile
blob: 220742a517d7ceff9046db0de4e1eb6a83fd7d0a (plain) (blame)
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
#!/bin/sh

# user directories
export XDG_DATA_HOME="${HOME}/.local/share"
export XDG_CONFIG_HOME="${HOME}/.config"
export XDG_STATE_HOME="${HOME}/.local/state"
export XDG_CACHE_HOME="${HOME}/.cache"
export XDG_DESKTOP_DIR="${HOME}"
export XDG_DOWNLOAD_DIR="${HOME}/dl"
export XDG_DOCUMENTS_DIR="${HOME}/doc"
export XDG_PICTURES_DIR="${HOME}/pix"
export XDG_MUSIC_DIR="${HOME}/ms"
export XDG_VIDEOS_DIR="${HOME}/vid"
export GOPATH="${HOME}/.cache/go"

# user programs
export EDITOR=nvim
export VISUAL=nvim
export BROWSER=firefox
export TERMINAL=foot
export SUDO_ASKPASS="${HOME}/.local/bin/sds/daskpass"
export QT_QPA_PLATFORMTHEME=qt5ct

# $HOME clean up
export ANDROID_HOME="${XDG_DATA_HOME}/android"
export HISTFILE="${XDG_STATE_HOME}/shell/history"
export CARGO_HOME="${XDG_DATA_HOME}/cargo"
export CUDA_CACHE_PATH="${XDG_CACHE_HOME}/nvidia"
export GNUPGHOME="${XDG_DATA_HOME}/gnupg"
export GTK2_RC_FILES="${XDG_CONFIG_HOME}/gtk-2.0/gtkrc"
export LESSHISTFILE="${XDG_STATE_HOME}/less/history"
export PASSWORD_STORE_DIR="${XDG_DATA_HOME}/pass"
export MBSYNCRC="${XDG_CONFIG_HOME}/isync/mbsyncrc"

# misc
export PATH="${PATH}:${HOME}/.local/bin:${HOME}/.local/bin/sb:${HOME}/.local/bin/sds"
export _JAVA_AWT_WM_NONREPARENTING=1 # android-studio crash

# wayland
export MOZ_ENABLE_WAYLAND=1
export XDG_CURRENT_DESKTOP=wlroots

case "$(tty)" in
*/tty1)
	exec dbus-run-session dwl -s "${XDG_CONFIG_HOME:-$HOME/.config}/wayland/winit"
	;;
esac