hyprdots

my dotfiles
git clone https://git.awy.one/hyprdots.git
Log | Files | Refs | README | LICENSE

profile (3841B)


      1 #!/bin/sh
      2 # shellcheck disable=SC2155
      3 
      4 # Profile file, runs on login. Environmental variables are set here.
      5 
      6 # Add all directories in `~/.local/bin` to $PATH
      7 export PATH="$PATH:$(find ~/.local/bin -type d | paste -sd ':' -)"
      8 
      9 unsetopt PROMPT_SP 2>/dev/null
     10 
     11 # Default programs:
     12 export EDITOR="nvim"
     13 export MANPAGER='nvim +Man!'
     14 export TERMINAL="foot"
     15 export TERMINAL_PROG="foot"
     16 export BROWSER="librewolf"
     17 
     18 unset SSH_AGENT_PID
     19 if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
     20   export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
     21 fi
     22 
     23 # Change the default crypto/weather monitor sites.
     24 # export CRYPTOURL="rate.sx"
     25 # export WTTRURL="wttr.in"
     26 
     27 # ~/ Clean-up:
     28 export XDG_CONFIG_HOME="$HOME/.config"
     29 export XDG_DATA_HOME="$HOME/.local/share"
     30 export XDG_CACHE_HOME="$HOME/.cache"
     31 export XDG_STATE_HOME="$HOME/.local/state"
     32 export NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuch-config"
     33 export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc"
     34 export INPUTRC="$XDG_CONFIG_HOME/shell/inputrc"
     35 export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
     36 #export GNUPGHOME="$XDG_DATA_HOME/gnupg"
     37 export WINEPREFIX="$XDG_DATA_HOME/wineprefixes/default"
     38 export KODI_DATA="$XDG_DATA_HOME/kodi"
     39 export PASSWORD_STORE_DIR="$XDG_DATA_HOME/password-store"
     40 export TMUX_TMPDIR="$XDG_RUNTIME_DIR"
     41 export ANDROID_SDK_HOME="$XDG_CONFIG_HOME/android"
     42 export CARGO_HOME="$XDG_DATA_HOME/cargo"
     43 export GOPATH="$XDG_DATA_HOME/go"
     44 export GOMODCACHE="$XDG_CACHE_HOME/go/mod"
     45 export ANSIBLE_CONFIG="$XDG_CONFIG_HOME/ansible/ansible.cfg"
     46 export UNISON="$XDG_DATA_HOME/unison"
     47 export HISTFILE="$XDG_DATA_HOME/history"
     48 export MBSYNCRC="$XDG_CONFIG_HOME/mbsync/config"
     49 export ELECTRUMDIR="$XDG_DATA_HOME/electrum"
     50 export PYTHONSTARTUP="$XDG_CONFIG_HOME/python/pythonrc"
     51 export SQLITE_HISTORY="$XDG_DATA_HOME/sqlite_history"
     52 export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc"
     53 export CUDA_CACHE_PATH="$XDG_CACHE_HOME/nv"
     54 export KUBECONFIG="$XDG_CONFIG_HOME/kube" 
     55 export KUBECACHEDIR="$XDG_CACHE_HOME/kube"
     56 export DOCKER_CONFIG="$XDG_CONFIG_HOME/docker"
     57 export PASSWORD_STORE_CLIP_TIME=5
     58 
     59 # Other program settings:
     60 export DICS="/usr/share/stardict/dic/"
     61 export SUDO_ASKPASS="$HOME/.local/bin/dmenupass"
     62 export LESS="R"
     63 export LESS_TERMCAP_mb="$(printf '%b' '')"
     64 export LESS_TERMCAP_md="$(printf '%b' '')"
     65 export LESS_TERMCAP_me="$(printf '%b' '')"
     66 export LESS_TERMCAP_so="$(printf '%b' '')"
     67 export LESS_TERMCAP_se="$(printf '%b' '')"
     68 export LESS_TERMCAP_us="$(printf '%b' '')"
     69 export LESS_TERMCAP_ue="$(printf '%b' '')"
     70 export LESSOPEN="| /usr/bin/highlight -O ansi %s 2>/dev/null"
     71 export QT_QPA_PLATFORMTHEME="gtk3"        # Have QT use gtk3 theme.
     72 export MOZ_USE_XINPUT2=1                  # Mozilla smooth scrolling/touchpads.
     73 export AWT_TOOLKIT="MToolkit wmname LG3D" # May have to install wmname
     74 export _JAVA_AWT_WM_NONREPARENTING=1      # Fix for Java applications in dwm
     75 export LIBVA_DRIVER_NAME=nvidia
     76 export __GLX_VENDOR_LIBRARY_NAME=nvidia
     77 export MOZ_DISABLE_RDD_SANDBOX=1		# For HW in Firefox on nvidia gpu
     78 export __GL_THREADED_OPTIMIZATIONS=0		# Minecraft GLFW fix on nvidia gpu
     79 export ELECTRON_OZONE_PLATFORM_HINT=auto 	# Electron fix
     80 export QT_WAYLAND_DISABLE_WINDOWDECORATION=1	# Disables decorations for QT applications
     81 export FZF_DEFAULT_OPTS=\
     82 "--layout=reverse --height 40% \
     83 --color=fg:#e5e9f0,bg:-1,hl:#81a1c1 \
     84 --color=fg+:#e5e9f0,bg+:#3b4252,hl+:#81a1c1 \
     85 --color=info:#eacb8a,prompt:#bf6069,pointer:#b48dac \
     86 --color=marker:#a3be8b,spinner:#b48dac,header:#a3be8b"
     87 export YT_X_FZF_OPTS="$FZF_DEFAULT_OPTS"
     88 export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#767676"
     89 
     90 [ ! -f "$XDG_CONFIG_HOME/shell/shortcutrc" ] && setsid -f shortcuts >/dev/null 2>&1
     91 
     92 # Start graphical server on user's current tty if not already running.
     93 [ "$(tty)" = "/dev/tty1" ] && ! pidof -s Hyprland >/dev/null 2>&1 && exec dbus-launch --exit-with-session Hyprland