diff --git a/bashrc.txt b/bashrc.txt index 516a3872..5d613526 100644 --- a/bashrc.txt +++ b/bashrc.txt @@ -227,6 +227,7 @@ alias chromium="chromium --incognito --disable-search-engine-collection --finger alias {firefox-developer-edition,firefox}="firefox-developer-edition" alias {sq,sql,sqlite}="sqlcipher" alias view="kitty +kitten icat" +alias viewer="feh -F -Z -x" alias mupdf='mupdf -r 204' alias dkpdf='mupdf -I -r 204' alias {json,jscrl,jsoncurl,jcrl}="jscurl" diff --git a/tuir/mailcap b/tuir/mailcap index 0036b94f..70eaaebf 100644 --- a/tuir/mailcap +++ b/tuir/mailcap @@ -25,17 +25,22 @@ # Feh is a simple and effective image viewer # Note that tuir returns a list of urls for imgur albums, so we don't put quotes # around the `%s` -image/x-imgur-album; feh -g 640x480 -. %s; test=test -n "$DISPLAY" -image/gif; mpv '%s' --autofit=640x480 --loop=inf; test=test -n "$DISPLAY" -image/*; feh -g 640x480 -. '%s'; test=test -n "$DISPLAY" +# image/x-imgur-album; feh -g 640x480 -. %s; test=test -n "$DISPLAY" +# image/gif; mpv '%s' --autofit=640x480 --loop=inf; test=test -n "$DISPLAY" +# image/*; feh -g 640x480 -. '%s'; test=test -n "$DISPLAY" +# +# Custom Feh image viewer settings +image/x-imgur-album; feh -F -Z -x -. %s; test=test -n "$DISPLAY" +image/gif; mpv '%s' --fs --loop=inf; test=test -n "$DISPLAY" +image/*; feh -F -Z -x -. '%s'; test=test -n "$DISPLAY" # Youtube videos are assigned a custom mime-type, which can be streamed with # vlc or youtube-dl. -video/x-youtube; vlc '%s' --width 640 --height 480; test=test -n "$DISPLAY" +#video/x-youtube; vlc '%s' --width 640 --height 480; test=test -n "$DISPLAY" video/x-youtube; mpv --ytdl-format=bestvideo+bestaudio/best '%s' --autofit=640x480; test=test -n "$DISPLAY" # Mpv is a simple and effective video streamer -video/*; mpv '%s' --autofit=640x480 --loop=inf; test=test -n "$DISPLAY" +video/*; mpv '%s' --fs --loop=inf; test=test -n "$DISPLAY" ############################################################################### # Commands below this point will attempt to display media directly in the