dotfiles

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

commit 2e37de112a3d7d269e18bc144e402351c4fe8a56
parent cfc5a576229d8e2181bf0c573c9b42d6e7ce95aa
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Sat, 17 Oct 2020 20:13:14 +0200

opener: fix case of application/octet-stream

Former-commit-id: a1ab3d983960d55915ecbf0824e8495a18d95686
Diffstat:
Mscripts/opener | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/scripts/opener b/scripts/opener @@ -6,6 +6,12 @@ case $(file --mime-type "$1" -bL) in application/epub*) setsid -f ebook-viewer "$1" >/dev/null 2>&1;; application/x-sc) sc-im "$1";; video/*) mpvq "$@";; - audio/*|application/octet-stream) mpv --no-audio-display --no-video --volume=50 "$1";; + audio/*) mpv --no-audio-display --no-video --volume=50 "$1";; + application/octet-stream) + case "$1" in + *.mp3) mpv --no-audio-display --no-video --volume=50 "$1";; + *.dmg) setsid -f open "$@" > /dev/null 2>&1;; + esac + ;; *) setsid -f open "$@" > /dev/null 2>&1;; esac