dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit b86af3c5f62349b6ef2b0576500c711b3dbfae54
parent 884524ba632a85534f3770404d0078ab72c89d30
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Mon, 15 Jun 2020 20:44:17 +0200

Use mpv for gifs

Diffstat:
M.local/bin/plumb | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.local/bin/plumb b/.local/bin/plumb @@ -197,13 +197,13 @@ handle_target() { t="gopher://${host}:${port}/${type}${path}" fi - if regeximatch "$t" '\.(mp4|mkv|webm|avi|ogv)$'; then + if regeximatch "$t" '\.(mp4|mkv|webm|avi|ogv|gif)$'; then detach $prefix mpv "$t" elif regeximatch "$t" '^radio://'; then $prefix mpv "http${t##radio}" elif regeximatch "$t" '\.(mp3|ogg|m3u)$'; then $prefix mpv "$(fetch "$t")" - elif regeximatch "$t" '\.(png|jpg|jpeg|tif|bmp|gif)$'; then + elif regeximatch "$t" '\.(png|jpg|jpeg|tif|bmp)$'; then $prefix sxiv "$(fetch "$t")" elif regeximatch "$t" '\.(pdf|ps|epub|djvu)$'; then $prefix zathura "$(fetch "$t")"