dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit f17aacfadaafc2660a07721fcd39cb61bd526409
parent 72614148b1fc3b7d0b5530b78182f2a0beca5faa
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Sat, 15 Sep 2018 20:33:02 -0400

linkhandler default browser with fixes

Diffstat:
M.profile | 10+++++-----
M.scripts/linkhandler | 2+-
2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/.profile b/.profile @@ -5,20 +5,20 @@ export PATH="$PATH:$HOME/.scripts" export EDITOR="vim" export TERMINAL="st" -export BROWSER="firefox" +export BROWSER="linkhandler" +export TRUEBROWSER="firefox" export READER="zathura" 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. -if [[ "$(tty)" = "/dev/tty1" ]]; then +if [ "$(tty)" = "/dev/tty1" ]; then pgrep -x i3 || exec startx fi # Switch escape and caps and use wal colors if tty: sudo -n loadkeys ~/.scripts/ttymaps.kmap 2>/dev/null wal -Rn - diff --git a/.scripts/linkhandler b/.scripts/linkhandler @@ -20,5 +20,5 @@ case "$1" in setsid tsp wget "$1" >/dev/null 2>&1 & ;; *springer.com*) 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