251 lines
5.6 KiB
Bash
251 lines
5.6 KiB
Bash
#!/bin/zsh
|
||
|
||
# profile file. Runs on login. Environmental variables are set here.
|
||
|
||
# Adds `~/.local/bin` to $PATH
|
||
export PATH="$PATH:~/.local/share/npm-global/bin:${$(find -L ~/.local/bin -type d -printf %p:)%%:}"
|
||
|
||
unsetopt PROMPT_SP
|
||
|
||
# Default programs:
|
||
export EDITOR="nvim"
|
||
export TERMINAL="kitty"
|
||
export BROWSER="librewolf"
|
||
|
||
# Clean-up:
|
||
export XDG_CONFIG_HOME="$HOME/.config"
|
||
export XDG_DATA_HOME="$HOME/.local/share"
|
||
export XDG_CACHE_HOME="$HOME/.cache"
|
||
export PYENVS_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/virtualenv"
|
||
export KEYMAPS_DIR="$HOME/.local/bin/keymaps"
|
||
export XINITRC="${XDG_CONFIG_HOME:-$HOME/.config}/x11/xinitrc"
|
||
export ZSH_COMPDUMP="${XDG_CACHE_HOME:-$HOME/.cache}/zcompdump"
|
||
export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" # This line will break some DMs.
|
||
export NOTMUCH_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/notmuch-config"
|
||
export GTK2_RC_FILES="${XDG_CONFIG_HOME:-$HOME/.config}/gtk-2.0/gtkrc-2.0"
|
||
export LESSHISTFILE="-"
|
||
export WGETRC="${XDG_CONFIG_HOME:-$HOME/.config}/wget/wgetrc"
|
||
export INPUTRC="${XDG_CONFIG_HOME:-$HOME/.config}/shell/inputrc"
|
||
export ZDOTDIR="${XDG_CONFIG_HOME:-$HOME/.config}/zsh"
|
||
# export ALSA_CONFIG_PATH="$XDG_CONFIG_HOME/alsa/asoundrc"
|
||
export GNUPGHOME="${XDG_CONFIG_HOME:-$HOME/.config}/gnupg"
|
||
export WINEPREFIX="${XDG_DATA_HOME:-$HOME/.local/share}/wineprefixes/default"
|
||
export KODI_DATA="${XDG_DATA_HOME:-$HOME/.local/share}/kodi"
|
||
export PASSWORD_STORE_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/password-store"
|
||
export TMUX_TMPDIR="$XDG_RUNTIME_DIR"
|
||
export ANDROID_SDK_HOME="${XDG_CONFIG_HOME:-$HOME/.config}/android"
|
||
export CARGO_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/cargo"
|
||
export GOPATH="${XDG_DATA_HOME:-$HOME/.local/share}/go"
|
||
export ANSIBLE_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/ansible/ansible.cfg"
|
||
export UNISON="${XDG_DATA_HOME:-$HOME/.local/share}/unison"
|
||
export HISTFILE="${XDG_DATA_HOME:-$HOME/.local/share}/history"
|
||
export WEECHAT_HOME="${XDG_CONFIG_HOME:-$HOME/.config}/weechat"
|
||
export MBSYNCRC="${XDG_CONFIG_HOME:-$HOME/.config}/mbsync/config"
|
||
export ELECTRUMDIR="${XDG_DATA_HOME:-$HOME/.local/share}/electrum"
|
||
export XCURSOR_PATH="${XDG_DATA_HOME:-$HOME/.local/share}/icons"
|
||
export GRADLE_USER_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/gradle"
|
||
|
||
# xsecurelock settings
|
||
export XSECURELOCK_AUTH_BACKGROUND_COLOR="#24283b"
|
||
export XSECURELOCK_AUTH_FOREGROUND_COLOR="#c0caf5"
|
||
export XSECURELOCK_AUTH_WARNING_COLOR="#f7768e"
|
||
export XSECURELOCK_BACKGROUND_COLOR="#15161E"
|
||
export XSECURELOCK_DATETIME_FORMAT="%d.%m.%Y %H:%M"
|
||
export XSECURELOCK_PASSWORD_PROMPT="time_hex"
|
||
export XSECURELOCK_AUTH_TIMEOUT=10
|
||
export XSECURELOCK_SHOW_DATETIME=1
|
||
export XSECURELOCK_COMPOSITE_OBSCURER=0
|
||
export XSECURELOCK_SAVER="/usr/libexec/xscreensaver/cubicgrid"
|
||
export XSECURELOCK_SHOW_DATETIME=1
|
||
export XSECURELOCK_SHOW_HOSTNAME=1
|
||
|
||
|
||
# Other program settings:
|
||
export SUDO_ASKPASS="$HOME/.local/bin/dmenupass"
|
||
export FZF_DEFAULT_OPTS="--layout=reverse --height 40%"
|
||
export LESS=-R
|
||
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"
|
||
export QT_QPA_PLATFORMTHEME="gtk2" # Have QT use gtk2 theme.
|
||
export MOZ_USE_XINPUT2="1" # Mozilla smooth scrolling/touchpads.
|
||
export AWT_TOOLKIT="MToolkit wmname LG3D" #May have to install wmname
|
||
export _JAVA_AWT_WM_NONREPARENTING=1 # Fix for Java applications in dwm
|
||
export ANSIBLE_NOCOWS=1 # Stop those fucking cows in Ansible
|
||
export VIRTUAL_ENV_DISABLE_PROMPT=1
|
||
export VAULT_ADDR='https://vault.tralios.de'
|
||
|
||
|
||
# This is the list for lf icons:
|
||
export LF_ICONS="\
|
||
tw=:\
|
||
st=:\
|
||
ow=:\
|
||
dt=:\
|
||
di=:\
|
||
fi=:\
|
||
ln=:\
|
||
or=:\
|
||
ex=:\
|
||
*.c=:\
|
||
*.cc=:\
|
||
*.clj=:\
|
||
*.coffee=:\
|
||
*.cpp=:\
|
||
*.css=:\
|
||
*.d=:\
|
||
*.dart=:\
|
||
*.erl=:\
|
||
*.exs=:\
|
||
*.fs=:\
|
||
*.go=:\
|
||
*.h=:\
|
||
*.hh=:\
|
||
*.hpp=:\
|
||
*.hs=:\
|
||
*.html=:\
|
||
*.java=:\
|
||
*.jl=:\
|
||
*.js=:\
|
||
*.json=:\
|
||
*.lua=:\
|
||
*.md=:\
|
||
*.php=:\
|
||
*.pl=:\
|
||
*.pro=:\
|
||
*.py=:\
|
||
*.rb=:\
|
||
*.rs=:\
|
||
*.scala=:\
|
||
*.ts=:\
|
||
*.vim=:\
|
||
*.cmd=:\
|
||
*.ps1=:\
|
||
*.sh=:\
|
||
*.bash=:\
|
||
*.zsh=:\
|
||
*.fish=:\
|
||
*.tar=:\
|
||
*.tgz=:\
|
||
*.arc=:\
|
||
*.arj=:\
|
||
*.taz=:\
|
||
*.lha=:\
|
||
*.lz4=:\
|
||
*.lzh=:\
|
||
*.lzma=:\
|
||
*.tlz=:\
|
||
*.txz=:\
|
||
*.tzo=:\
|
||
*.t7z=:\
|
||
*.zip=:\
|
||
*.z=:\
|
||
*.dz=:\
|
||
*.gz=:\
|
||
*.lrz=:\
|
||
*.lz=:\
|
||
*.lzo=:\
|
||
*.xz=:\
|
||
*.zst=:\
|
||
*.tzst=:\
|
||
*.bz2=:\
|
||
*.bz=:\
|
||
*.tbz=:\
|
||
*.tbz2=:\
|
||
*.tz=:\
|
||
*.deb=:\
|
||
*.rpm=:\
|
||
*.jar=:\
|
||
*.war=:\
|
||
*.ear=:\
|
||
*.sar=:\
|
||
*.rar=:\
|
||
*.alz=:\
|
||
*.ace=:\
|
||
*.zoo=:\
|
||
*.cpio=:\
|
||
*.7z=:\
|
||
*.rz=:\
|
||
*.cab=:\
|
||
*.wim=:\
|
||
*.swm=:\
|
||
*.dwm=:\
|
||
*.esd=:\
|
||
*.jpg=:\
|
||
*.jpeg=:\
|
||
*.mjpg=:\
|
||
*.mjpeg=:\
|
||
*.gif=:\
|
||
*.bmp=:\
|
||
*.pbm=:\
|
||
*.pgm=:\
|
||
*.ppm=:\
|
||
*.tga=:\
|
||
*.xbm=:\
|
||
*.xpm=:\
|
||
*.tif=:\
|
||
*.tiff=:\
|
||
*.png=:\
|
||
*.svg=:\
|
||
*.svgz=:\
|
||
*.mng=:\
|
||
*.pcx=:\
|
||
*.mov=:\
|
||
*.mpg=:\
|
||
*.mpeg=:\
|
||
*.m2v=:\
|
||
*.mkv=:\
|
||
*.webm=:\
|
||
*.ogm=:\
|
||
*.mp4=:\
|
||
*.m4v=:\
|
||
*.mp4v=:\
|
||
*.vob=:\
|
||
*.qt=:\
|
||
*.nuv=:\
|
||
*.wmv=:\
|
||
*.asf=:\
|
||
*.rm=:\
|
||
*.rmvb=:\
|
||
*.flc=:\
|
||
*.avi=:\
|
||
*.fli=:\
|
||
*.flv=:\
|
||
*.gl=:\
|
||
*.dl=:\
|
||
*.xcf=:\
|
||
*.xwd=:\
|
||
*.yuv=:\
|
||
*.cgm=:\
|
||
*.emf=:\
|
||
*.ogv=:\
|
||
*.ogx=:\
|
||
*.aac=:\
|
||
*.au=:\
|
||
*.flac=:\
|
||
*.m4a=:\
|
||
*.mid=:\
|
||
*.midi=:\
|
||
*.mka=:\
|
||
*.mp3=:\
|
||
*.mpc=:\
|
||
*.ogg=:\
|
||
*.ra=:\
|
||
*.wav=:\
|
||
*.oga=:\
|
||
*.opus=:\
|
||
*.spx=:\
|
||
*.xspf=:\
|
||
*.pdf=:\
|
||
*.nix=:\
|
||
"
|
||
|
||
stty onlcr
|
||
|
||
[ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ] && exec startx "$XINITRC"
|