diff options
author | Jackson Taylor <jackson@jacksontaylor.xyz> | 2022-02-03 22:22:11 -0500 |
---|---|---|
committer | Jackson Taylor <jackson@jacksontaylor.xyz> | 2022-02-03 22:28:08 -0500 |
commit | 7888574b1c18c77b75e5c6c5930cd0709f16898a (patch) | |
tree | ed4214ac5696c5641a1d8e3d335d68f7ca72f6d2 /.config/shell/profile | |
parent | 7434b9127257627a48b7520effd46fb389f1fddd (diff) |
Diffstat (limited to '.config/shell/profile')
-rwxr-xr-x | .config/shell/profile | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/.config/shell/profile b/.config/shell/profile new file mode 100755 index 0000000..54082b9 --- /dev/null +++ b/.config/shell/profile @@ -0,0 +1,75 @@ +# Runs on login and sets some environment variables and stuff + +# set local bin folder and sub folders in PATH +export PATH="$PATH:$(du "$HOME/.local/bin/" | cut -f2 | tr '\n' ':' | sed 's/:*$//')" + +# Set Golang paths and add to PATH +export GOPATH=$HOME/code/go +export GOBIN=$HOME/code/go/bin +export PATH=$PATH:$GOBIN + +# Set wallpaper to use +export WALLPAPER="$HOME/Pictures/wallpapers/weird_i_guess.jpg" + +# Set default programs +export BROWSER="brave" +export EDITOR="nvim" +export FILE="ranger" +export READER="zathura" +export TERMINAL="st" + +# Used in weather scripts +export LOCATION="Vass" + +# Home dir cleanup +export XDG_CONFIG_HOME="$HOME/.config" +export XDG_DATA_HOME="$HOME/.local/share" +export XDG_CACHE_HOME="$HOME/.cache" +export XINITRC="${XDG_CONFIG_HOME:-$HOME/.config}/x11/xinitrc" +#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_DATA_HOME:-$HOME/.local/share}/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 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 SUDO_ASKPASS="$HOME/.local/bin/dmenupass" + +# ctrl-r vim mode +export MCFLY_KEY_SCHEME=vim +export MCFLY_DBDIR="$HOME/.cache/mcfly/" + +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 _JAVA_AWT_WM_NONREPARENTING=1 # Fix for Java applications in dwm + +export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) + +if pacman -Qs libxft-bgra >/dev/null 2>&1; then + # Start graphical server on user's current tty if not already running. + [ "$(tty)" = "/dev/tty1" ] && ! pidof -s Xorg >/dev/null 2>&1 && exec startx "$XINITRC" +fi |