#!/bin/bash
# __ _ _
# _ __ _ __ ___ / _(_) | ___
# | '_ \| '__/ _ \| |_| | |/ _ \
# | |_) | | | (_) | _| | | __/
# | .__/|_| \___/|_| |_|_|\___|
# |_|
#
# ~/.profile
[[ $LANG = '' ]] && export LANG=en_US.UTF-8
export PATH="$(du $HOME/.local/bin/ | cut -f2 | tr '\n' ':')$PATH"
export SUDO_ASKPASS="$HOME/.local/bin/dmenupass"
export TERMINAL="st"
export FILE="ranger"
export EDITOR="vim"
export READER="zathura"
export BROWSER="brave-browser"
export IMGVIEWER="sxiv -a"
export TMUX_TMPDIR="$XDG_RUNTIME_DIR"
export SHOW_MOONPHASE=1 # 1 = enabled; 0 = disabled
export XDG_CONFIG_HOME="$HOME/.config/"
export XDG_CACHE_HOME="$HOME/.cache"
export XINITRC="$XDG_CONFIG_HOME/x11/xinitrc"
export TERMCMD="st"
export QT_STYLE_OVERRIDE="gtk"
export QT_SELECT="qt5"
export RTV_EDITOR="vim"
export RTV_BROWSER="linkhandler"
export RTV_URLVIEWER="urlscan -dc -r 'linkhandler {}'"
# less/man colors
export LESS=-R
export LESS_TERMCAP_mb=$'\E[1;31m' # begin bold
export LESS_TERMCAP_md=$'\E[1;36m' # begin blink
export LESS_TERMCAP_me=$'\E[0m' # reset bold/blink
export LESS_TERMCAP_so=$'\E[01;44;33m' # begin reverse video
export LESS_TERMCAP_se=$'\E[0m' # reset reverse video
export LESS_TERMCAP_us=$'\E[1;32m' # begin underline
export LESS_TERMCAP_ue=$'\E[0m' # reset underline
#mpd >/dev/null 2>&1 &
echo "$0" | grep "bash$" >/dev/null && [ -f ~/.bashrc ] && source "$HOME/.bashrc"
[ ! -f "$XDG_CONFIG_HOME/shell/shortcutrc" ] && setsid -f shortcuts >/dev/null 2>&1
[ -f /usr/bin/startx ] && [ "$(tty)" = "/dev/tty1" ] && ! pgrep -x Xorg >/dev/null && exec ssh-agent startx