2023-05-07 02:00:19 +00:00
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
export ZDOTDIR="$HOME"/.config/zsh
|
|
|
|
|
export HISTFILE="$HOME"/.cache/zsh_history
|
|
|
|
|
! [ -f "$HISTFILE" ] && mkdir "$HOME"/.cache/ && touch "$HISTFILE"
|
|
|
|
|
|
|
|
|
|
export XDG_DATA_HOME="$HOME/.local/share"
|
|
|
|
|
export XDG_CONFIG_HOME="$HOME/.config"
|
2023-05-10 05:03:32 +00:00
|
|
|
|
export XDG_CACHE_HOME="$HOME/.cache"
|
2023-05-07 02:00:19 +00: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 WGETRC="${XDG_CONFIG_HOME:-$HOME/.config}/wget/wgetrc"
|
|
|
|
|
export INPUTRC="${XDG_CONFIG_HOME:-$HOME/.config}/inputrc"
|
|
|
|
|
export WINEPREFIX="$XDG_DATA_HOME/wineprefixes/default"
|
|
|
|
|
export STACK_ROOT="$XDG_DATA_HOME"/stack
|
|
|
|
|
export PASSWORD_STORE_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/password-store"
|
|
|
|
|
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
|
|
|
|
|
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 TMUX_TMPDIR="$XDG_RUNTIME_DIR"
|
|
|
|
|
export ANDROID_SDK_HOME="${XDG_CONFIG_HOME:-$HOME/.config}/android"
|
|
|
|
|
export MBSYNCRC="${XDG_CONFIG_HOME:-$HOME/.config}/mbsync/config"
|
|
|
|
|
export ELECTRUMDIR="${XDG_DATA_HOME:-$HOME/.local/share}/electrum"
|
|
|
|
|
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME"/npm/npmrc
|
|
|
|
|
|
2023-05-10 05:03:32 +00:00
|
|
|
|
export GHCUP_USE_XDG_DIRS=true
|
|
|
|
|
export STACK_ROOT="$XDG_DATA_HOME"/stack
|
|
|
|
|
|
2023-05-07 02:00:19 +00:00
|
|
|
|
|
|
|
|
|
#make firefox/librewolf use wayland
|
|
|
|
|
export GDK_BACKEND=wayland
|
|
|
|
|
export MOZ_ENABLE_WAYLAND=1
|
|
|
|
|
|
|
|
|
|
#theming
|
|
|
|
|
export GTK_THEME=Adwaita:dark
|
|
|
|
|
export XCURSOR_THEME=Adwaita
|
|
|
|
|
|
|
|
|
|
#add to path
|
|
|
|
|
export PATH="$PATH:$HOME/.local/bin"
|
|
|
|
|
export PATH="$PATH:$HOME/.local/scripts"
|
|
|
|
|
export PATH="$PATH:/var/lib/flatpak/exports/bin"
|
|
|
|
|
|
|
|
|
|
export LESSHISTFILE="-"
|
|
|
|
|
|
2023-05-10 05:03:32 +00:00
|
|
|
|
#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')"
|
2023-05-07 02:00:19 +00:00
|
|
|
|
|
|
|
|
|
export MANPAGER=less
|
|
|
|
|
export XDG_CURRENT_DESKTOP="sway"
|
|
|
|
|
|
|
|
|
|
#sfeed vars
|
|
|
|
|
export SFEED_PLUMBER="$BROWSER"
|
|
|
|
|
export SFEED_URL_FILE="$HOME/.local/share/sfeed/read"
|
|
|
|
|
|
|
|
|
|
#set programs
|
|
|
|
|
export EDITOR=nvim
|
|
|
|
|
export BROWSER="browser.sh"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#lf icons
|
2023-05-30 02:39:25 +00:00
|
|
|
|
[ -f "$HOME"/.config/lf/lf-icons.sh ] && . "$HOME"/.config/lf/lf-icons.sh
|
2023-05-07 02:00:19 +00:00
|
|
|
|
|
|
|
|
|
#fixes
|
|
|
|
|
#fix weird terminal issues
|
|
|
|
|
#export TERM="xterm-256color"
|
|
|
|
|
#fix arduino ide issues
|
|
|
|
|
export AWT_TOOLKIT=MToolkit
|