2022-07-04 21:36:33 +02:00
|
|
|
|
#!/bin/zsh
|
|
|
|
|
|
|
|
|
|
# profile file. Runs on login. Environmental variables are set here.
|
|
|
|
|
|
|
|
|
|
# Adds `~/.local/bin` to $PATH
|
2022-09-30 13:11:01 +02:00
|
|
|
|
export PATH="$PATH:~/.local/share/npm-global/bin:${$(find -L ~/.local/bin -type d -printf %p:)%%:}"
|
2022-07-04 21:36:33 +02:00
|
|
|
|
|
|
|
|
|
unsetopt PROMPT_SP
|
|
|
|
|
|
|
|
|
|
# Default programs:
|
2022-10-04 19:03:01 +02:00
|
|
|
|
export EDITOR="nvim"
|
2022-07-06 13:21:33 +02:00
|
|
|
|
export TERMINAL="kitty"
|
2022-07-04 23:30:22 +02:00
|
|
|
|
export BROWSER="librewolf"
|
2022-07-04 21:36:33 +02:00
|
|
|
|
|
2022-08-05 22:33:31 +02:00
|
|
|
|
# Clean-up:
|
2022-07-04 21:36:33 +02:00
|
|
|
|
export XDG_CONFIG_HOME="$HOME/.config"
|
|
|
|
|
export XDG_DATA_HOME="$HOME/.local/share"
|
|
|
|
|
export XDG_CACHE_HOME="$HOME/.cache"
|
2022-08-05 22:33:31 +02:00
|
|
|
|
export PYENVS_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/virtualenv"
|
2022-08-22 20:33:37 +02:00
|
|
|
|
export KEYMAPS_DIR="$HOME/.local/bin/keymaps"
|
2022-07-04 21:36:33 +02:00
|
|
|
|
export XINITRC="${XDG_CONFIG_HOME:-$HOME/.config}/x11/xinitrc"
|
2022-08-05 22:33:31 +02:00
|
|
|
|
export ZSH_COMPDUMP="${XDG_CACHE_HOME:-$HOME/.cache}/zcompdump"
|
2022-08-22 20:33:37 +02:00
|
|
|
|
export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" # This line will break some DMs.
|
2022-07-04 21:36:33 +02:00
|
|
|
|
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"
|
2022-08-08 01:50:27 +02:00
|
|
|
|
export XCURSOR_PATH="${XDG_DATA_HOME:-$HOME/.local/share}/icons"
|
2022-10-21 17:52:11 +02:00
|
|
|
|
export GRADLE_USER_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/gradle"
|
2022-07-04 21:36:33 +02:00
|
|
|
|
|
|
|
|
|
# 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
|
2022-08-05 09:35:02 +02:00
|
|
|
|
export VIRTUAL_ENV_DISABLE_PROMPT=1
|
|
|
|
|
|
2022-07-04 21:36:33 +02:00
|
|
|
|
|
|
|
|
|
# This is the list for lf icons:
|
|
|
|
|
export LF_ICONS="\
|
|
|
|
|
tw=:\
|
|
|
|
|
st=:\
|
|
|
|
|
ow=:\
|
|
|
|
|
dt=:\
|
|
|
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
|
|
|
|
*.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=:\
|
|
|
|
|
"
|
|
|
|
|
|
2022-07-27 20:03:56 +02:00
|
|
|
|
[ "$(tty)" = "/dev/tty1" ] && ! pidof -s Xorg >/dev/null 2>&1 && exec startx "$XINITRC"
|
|
|
|
|
[ ! -f ${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc ] && setsid shortcuts >/dev/null 2>&1
|
2022-09-21 21:46:55 +02:00
|
|
|
|
sudo -n loadkeys ${XDG_DATA_HOME:-$HOME/.local/share}/ttymaps.kmap 2>/dev/null
|
2022-08-22 20:33:37 +02:00
|
|
|
|
|