-
Notifications
You must be signed in to change notification settings - Fork 9
/
.profile
69 lines (55 loc) · 1.81 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
67
68
69
#!/bin/bash
# _____ __
# ____ _________ / __(_) /__
# / __ \/ ___/ __ \/ /_/ / / _ \
# / /_/ / / / /_/ / __/ / / __/
# / .___/_/ \____/_/ /_/_/\___/
# /_/
#
# XDG Directory declarations
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"
# Establish error file location
export ERRFILE="$XDG_CACHE_HOME/X11/xsession-errors"
# Override QT apps theme
export QT_STYLE_OVERRIDE=kvantum
export QT_AUTO_SCREEN_SCALE_FACTOR=1
export QT_FONT_DPI=116 Roboto
export XCURSOR_SIZE=32
# Disable telemetry for dotnet apps
export DOTNET_CLI_TELEMETRY_OPTOUT=1
# set PATH so it includes user's private ~/.local/bin if it exists
if [ -d "$HOME/.local/bin" ]; then
PATH="$HOME/.local/bin:$PATH"
fi
if [ -d "$HOME/.bin" ]; then
PATH="$HOME/.bin:$PATH"
fi
# zsh directories
export ZDOTDIR="$HOME"/.config/zsh
# bash directories
export HISTFILE="${XDG_STATE_HOME}"/bash/history
# miscellaneous
export LESSHISTFILE="$XDG_CACHE_HOME"/less/history
export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
export GOPATH="$XDG_DATA_HOME"/go
export CUDA_CACHE_PATH="$XDG_CACHE_HOME"/nv
export CARGO_HOME="$XDG_DATA_HOME"/cargo
export GNUPGHOME="$XDG_DATA_HOME"/gnupg
export SCREENRC="$XDG_CONFIG_HOME"/screen/screenrc
export MYPY_CACHE_DIR="$XDG_CACHE_HOME"/mypy
export RUSTUP_HOME="$XDG_DATA_HOME"/rustup
export ANDROID_HOME="$XDG_DATA_HOME"/android
# Set default mime types
export TERMINAL="alacritty"
export BROWSER="firefox"
# Very niche variables go below this
export torrents_b9k="/tmp/torrent-stream"
export recordings_b9k="/tmp/Recordings"
export screenshots_b9k="/tmp/Screenshots"
# Create temp directories
mkdir $torrents_b9k
mkdir $recordings_b9k
mkdir $screenshots_b9k