linkhandler default browser with fixes

This commit is contained in:
Luke Smith 2018-09-15 20:33:02 -04:00
parent 72614148b1
commit f17aacfada
2 changed files with 6 additions and 6 deletions

View file

@ -5,20 +5,20 @@
export PATH="$PATH:$HOME/.scripts" export PATH="$PATH:$HOME/.scripts"
export EDITOR="vim" export EDITOR="vim"
export TERMINAL="st" export TERMINAL="st"
export BROWSER="firefox" export BROWSER="linkhandler"
export TRUEBROWSER="firefox"
export READER="zathura" export READER="zathura"
export BIB="$HOME/Documents/LaTeX/uni.bib" export BIB="$HOME/Documents/LaTeX/uni.bib"
. ~/.scripts/shortcuts.sh 2>/dev/null [ -f ~/.scripts/shortcuts.sh ] && ~/.scripts/shortcuts.sh
[[ -f ~/.bashrc ]] && . ~/.bashrc [ -f ~/.bashrc ] && source ~/.bashrc
# Start graphical server if i3 not already running. # Start graphical server if i3 not already running.
if [[ "$(tty)" = "/dev/tty1" ]]; then if [ "$(tty)" = "/dev/tty1" ]; then
pgrep -x i3 || exec startx pgrep -x i3 || exec startx
fi fi
# Switch escape and caps and use wal colors if tty: # Switch escape and caps and use wal colors if tty:
sudo -n loadkeys ~/.scripts/ttymaps.kmap 2>/dev/null sudo -n loadkeys ~/.scripts/ttymaps.kmap 2>/dev/null
wal -Rn wal -Rn

View file

@ -20,5 +20,5 @@ case "$1" in
setsid tsp wget "$1" >/dev/null 2>&1 & ;; setsid tsp wget "$1" >/dev/null 2>&1 & ;;
*springer.com*) *springer.com*)
setsid curl -sO "$(curl -s "$scihub$*" | grep -Po "(?<=location.href=').+.pdf")" >/dev/null 2>&1 & ;; setsid curl -sO "$(curl -s "$scihub$*" | grep -Po "(?<=location.href=').+.pdf")" >/dev/null 2>&1 & ;;
*) setsid "$BROWSER" "$1" >/dev/null 2>&1 & ;; *) setsid "$TRUEBROWSER" "$1" >/dev/null 2>&1 & ;;
esac esac