dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 9b9c9357311348a5359a8beca106dbe353f2c43b
parent 2654e71c60110296937aa413dd0dc0fb0af870fb
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Sat, 27 Aug 2022 13:19:34 +0200

Use sioyek as PDF viewer

Diffstat:
Mmailcap | 2+-
Mscripts/opener | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mailcap b/mailcap @@ -11,7 +11,7 @@ application/x-tar-gz; tar tzf %s | less -R # Open pgp signatures as text application/pgp-signature; LESS="-Ric" less -application/pdf; setsid -f zathura %s +application/pdf; setsid -f /Applications/sioyek.app/Contents/MacOS/sioyek %s # Use the `opener` script for everything else image; setsid -f opener %s >/dev/null 2>&1 video; setsid -f opener %s >/dev/null 2>&1 diff --git a/scripts/opener b/scripts/opener @@ -9,7 +9,7 @@ case "$1" in text/*|application/json|inode/x-empty) { [ -n "$VIM_TERMINAL" ] && vimsend "$1"; } || ${EDITOR:-vim} "$1";; image/*) setsid -f nsxiv -a "$@" 2>&1;; application/epub*) setsid -f ebook-viewer "$1" >/dev/null 2>&1;; - application/pdf*) setsid -f zathura "$1" >/dev/null 2>&1;; + application/pdf*) setsid -f /Applications/sioyek.app/Contents/MacOS/sioyek "$1" >/dev/null 2>&1;; application/x-sc|application/vnd.openxmlformats-officedocument.spreadsheetml.sheet) sc-im "$1";; video/*) mpvq "$@";; audio/*) mpv --no-audio-display --no-video --volume=50 "$1";;