blob: 0979aa48fde006e254fa01c04283a646b1d3372b (
plain)
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
# Other XDG paths
export XDG_DATA_HOME=${XDG_DATA_HOME:="$HOME/.local/share"}
export XDG_CACHE_HOME=${XDG_CACHE_HOME:="$HOME/.cache"}
export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:="$HOME/.config"}
. "$HOME/.config/user-dirs.dirs"
export XDG_DATA_DIRS="${XDG_DATA_DIRS}:$HOME/.nix-profile/share"
# Doesn't seem to work
export ANDROID_SDK_HOME="$XDG_CONFIG_HOME"/android
export ANDROID_AVD_HOME="$XDG_DATA_HOME"/android/
export ANDROID_EMULATOR_HOME="$XDG_DATA_HOME"/android/
export ADB_VENDOR_KEY="$XDG_CONFIG_HOME"/android
# Disable files
export LESSHISTFILE=-
# Fixing Paths
export MBSYNCRC="$XDG_CONFIG_HOME"/isync/mbsyncrc
export ATOM_HOME="$XDG_DATA_HOME"/atom
export XINITRC="$XDG_CONFIG_HOME"/X11/xinitrc
export XSERVERRC="$XDG_CONFIG_HOME"/X11/xserverrc
export GEM_SPEC_CACHE="$XDG_DATA_HOME/ruby/specs"
export GEM_HOME="$XDG_DATA_HOME/ruby/gems"
export NPM_CONFIG_USERCONFIG=$XDG_CONFIG_HOME/npm/npmrc
export GOPATH="$XDG_DATA_HOME"/go
export GNUPGHOME="$XDG_DATA_HOME"/gnupg
export GRADLE_USER_HOME="$XDG_DATA_HOME"/gradle
export NUGET_PACKAGES="$XDG_CACHE_HOME"/NuGetPackages
export RXVT_SOCKET="$XDG_RUNTIME_DIR"/urxvtd
export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME"/java
export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
export ZDOTDIR=$HOME/.config/zsh
export CARGO_HOME="$XDG_DATA_HOME"/cargo
export WEECHAT_HOME="$XDG_CONFIG_HOME"/weechat
export PASSWORD_STORE_DIR="$XDG_DATA_HOME"/pass
export NOTMUCH_CONFIG="$XDG_CONFIG_HOME"/notmuch/notmuchrc
export NMBGIT="$XDG_DATA_HOME"/notmuch/nmbug
export WINEROOT="$XDG_DATA_HOME"/wineprefixes
export WINEPREFIX="$WINEROOT"/default
export MPD_HOST="$XDG_CONFIG_HOME/mpd/socket"
# Scaling
export QT_AUTO_SCREEN_SCALE_FACTOR=0
export QT_SCALE_FACTOR=1
export QT_SCREEN_SCALE_FACTORS="1;1;1"
export GDK_SCALE=1
export GDK_DPI_SCALE=1
# Theming
export QT_QPA_PLATFORMTHEME=qt5ct
# Fix wayland stuff
export MOZ_ENABLE_WAYLAND=1
export XKB_DEFAULT_OPTIONS=caps:escape
export XDG_CURRENT_DESKTOP=Unity
# Default Apps
export EDITOR="nvim"
export READER="zathura"
export VISUAL="nvim"
export TERMINAL="alacritty"
export BROWSER="browser"
export VIDEO="mpv"
export IMAGE="sxiv"
export OPENER="xdg-open"
export PAGER="less"
# ZVM
export ZVM_INSTALL="$HOME/.zvm/self"
export ZVMPATH="$HOME/.zvm/bin"
# Modern SDK
export N64_LIBGCCDIR="/opt/crashsdk/lib/gcc/mips64-elf/12.2.0"
export ROOT=/etc/n64
export BLENDER_3_0="/usr/bin/blender"
# DIRS
export SRCDIR="$HOME/.local/src"
# OLD PATH
export PATHS="$(echo "$PATH" | sed 's/:/\n/g')"
USERPATH=""
addtopath () {
local USERPATHS="$(echo "$USERPATH" | sed 's/:/\n/g')"
if [ -d "$1" ]; then
echo "$PATHS" | /usr/bin/grep -qE "^$1$" && return
echo "$USERPATHS" | /usr/bin/grep -qE "^$1$" && return
[ -n "$USERPATH" ] && USERPATH="${USERPATH}:"
USERPATH="${USERPATH}$1"
fi
}
# NEW PATH
addtopath "$HOME/.local/bin/testing"
addtopath "$HOME/.local/bin/shortcmds"
addtopath "$HOME/.local/bin/generics"
addtopath "$HOME/.local/bin/scripts"
addtopath "$HOME/.local/bin/sp"
addtopath "$HOME/.local/bin/blocks"
addtopath "$HOME/.local/bin/ignore"
addtopath "$HOME/.local/bin/volsv"
addtopath "$HOME/.local/bin"
addtopath "$HOME/.local/bin/flatpak-sc"
addtopath "$HOME/.local/share/flatpak/exports/bin/"
addtopath "$CARGO_HOME/bin"
addtopath "$GOPATH/bin"
addtopath "$ZVMPATH"
addtopath "$ZVM_INSTALL"
addtopath "/var/lib/flatpak/exports/bin"
# MERGE PATHS
[ -n "$USERPATH" ] && export PATH="$USERPATH:$PATH"
unset -f addtopath
unset USERPATH
unset PATHS
|