-
Notifications
You must be signed in to change notification settings - Fork 1
/
.zshenv
168 lines (140 loc) · 5.45 KB
/
.zshenv
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
#!/bin/sh
#
# Environemnt script
# sources{{{
. ~/.private 2> /dev/null
# }}}
# paths{{{
export PATH=$PATH:~/.local/bin # local scripts
export PATH=$PATH:~/.yarn/bin # global node packages
export PATH=$PATH:$(ruby -e 'puts Gem.user_dir' 2> /dev/null)/bin # global ruby modules
# }}}
# default programs{{{
#===============================================================================
# Defaults Programs
#===============================================================================
export WM="qtile start"
export TERMINAL=alacritty
export DMENU=amenu
export EDITOR=nvim
export VISUAL=$EDITOR
export BROWSER=firefox
export FILE=faint
export READER=zathura
export COMPOSITOR=picom
# export MANPAGER="$EDITOR +Man!"
# export PAGER="$EDITOR -R"
# }}}
# system stuff{{{
#===============================================================================
# System Stuff
#===============================================================================
export REPOS=/mnt/internal/git/system
export ICONS=~/.local/share/icons/system
export QT_QPA_PLATFORMTHEME="gtk2"
export QT_AUTO_SCREEN_SCALE_FACTOR=1
export QT_SCALE_FACTOR=1
export GROFF_FONT_PATH=~/.local/share/fonts/Groff
export TZ="Asia/Dhaka"
export FZF_DEFAULT_OPTS="\
--cycle
--reverse --border bottom --no-info --no-color --header '' --margin 0%,0%
--bind \;:accept
--bind esc:cancel
--bind tab:down
--bind btab:up
"
# --bind \':jump-accept,esc:cancel
export LAYOUT_EN=~/.config/X11/xmodmap-en
export LAYOUT_AR=~/.config/X11/xmodmap-ar
export LAYOUT_BN=~/.config/X11/xmodmap-bn
export GPG_MAIL=salmanabedin@disroot.org
# }}}
# server stuff{{{
#===============================================================================
# Server Stuff
#===============================================================================
export TERM=linux
export PATH=$PATH:~/.local/share/miniconda/bin
export PATH=$PATH:~/.local/share/nvim-linux64/bin
# }}}
# housekeeping{{{
#===============================================================================
# Housekeeping
#===============================================================================
export XDG_CACHE_HOME=~/.local/share/cache
export XINITRC=~/.config/X11/xinitrc
export ZDOTDIR=~/.config/zsh
export GOPATH=~/.local/share/go
export HISTFILE=~/.local/share/history
export UNISON=~/.local/share/unison
export WGETRC=~/.config/wget/wgetrc
export XAUTHORITY=~/.config/X11/Xauthority
export STARDICT_DATA_DIR=~/.local/share
export WEECHAT_HOME=~/.config/weechat
export ANDROID_SDK_HOME=~/.config/android
export ADB_VENDOR_KEY=~/.config/android
export ANDROID_AVD_HOME=~/.local/share/android/
export ANDROID_EMULATOR_HOME=~/.local/share/android/
#---------------------------------------
# Exp
#---------------------------------------
export MOZ_USE_XINPUT2="1" # Smooth Scrolling
export LESS=-R
export XDG_RUNTIME_DIR=$(mktemp -d /tmp/$(id -u)_RUNTIME_DIR.XXX 2> /dev/null)
unset LD_PRELOAD # Termux Bug Fix
# export LESS_TERMCAP_mb="$(printf '%b' '[1;31m')"
# export LESS_TERMCAP_md="$(printf '%b' '[1;36m')"
# export LESS_TERMCAP_me="$(printf '%b' '[0m')"
# export LESS_TERMCAP_so="$(printf '%b' '[01;44;33m')"
# export LESS_TERMCAP_se="$(printf '%b' '[0m')"
# export LESS_TERMCAP_us="$(printf '%b' '[1;32m')"
# export LESS_TERMCAP_ue="$(printf '%b' '[0m')"
# export LESSOPEN="| /usr/bin/highlight -O ansi %s 2>/dev/null"
# }}}
# autostart{{{
#===============================================================================
# Auto Start X on TTY1
#===============================================================================
if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
exec startx ~/.config/X11/xinitrc -- vt1 > /dev/null 2>&1
fi
# [ "$(fgconsole 2> /dev/null)" = 1 ] &&
# exec startx ~/.config/X11/xinitrc -- vt1 > /dev/null 2>&1
# }}}
# escape swap{{{
#===============================================================================
# Swap Escape & Caps Lock when on TTY
#===============================================================================
# doas -n loadkeys ~/.local/share/misc/tty_maps.kmap
# }}}
# graveyard{{{
#===============================================================================
# Graveyard
#===============================================================================
# export XDG_OPEN=launch
# export PASSWORD_STORE_DIR=~/.config/pass
# export NODE_ID=/tmp/node_id
# cat /etc/*-release | grep \"void\" >/dev/null && export TERMINAL=alacritty
# export NPM_CONFIG_PREFIX=~/.local/share/npm
#export VIMINIT="if !has('nvim') | source $XDG_CONFIG_HOME/vim/vimrc | endif"
# export GNUPGHOME=~/.local/share/gnupg
# export XDG_CONFIG_HOME=~/.config
# export XDG_DATA_HOME=~/.local/share
# export INPUTRC=~/.config/inputrc
# PATH="$PATH:$(du "$GIT"/own/alfred | cut -f2 | paste -sd ':')"
# PATH="$PATH:$(du $GIT/own/alfred | cut -f2 | tr '\n' ':' | sed 's/:$//')"
# export WM="bspwm"
# export TERMINAL="alacritty"
# export STATUSBAR="yabar"
# export DMENU="rofi -dmenu -i"
# export NPM_CONFIG_USERCONFIG=~/.config/npm/npmrc
# # disable firefox telemetry
# export MOZ_DATA_REPORTING=0
# export MOZ_TELEMETRY_REPORTING=0
# export MOZ_CRASHREPORTER=0
# export MOZ_SERVICES_HEALTHREPORT=0
# [ -L ~/.config/lf/lf_icons ] && . ~/.config/lf/lf_icons
# export PERL5LIB=~/perl5/lib/perl5
# export STATUSBAR="uniblocks -g"
# }}}