commit 33771c4b9264037a30bc012923d0c1c146677288
parent ce6bca205e12897e149439d5ecbd868b94668ed3
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Mon, 2 Nov 2020 11:52:39 +0100
plumb: scale images in sxiv(1) to view
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.local/bin/plumb b/.local/bin/plumb
@@ -145,7 +145,7 @@ handle_file_type() {
image/svg*)
detach inkscape "$1";;
image/*)
- detach sxiv -a "$1";;
+ detach sxiv -a -s f "$1";;
*)
die "file type $mime_type is not supported"
esac
@@ -212,7 +212,7 @@ handle_url() {
elif regeximatch "$t" '\.(mp3|ogg|m3u)$'; then
$prefix mplayer "$(fetch "$t")"
elif regeximatch "$t" '\.(png|jpg|jpeg|tif|bmp|gif)$'; then
- $prefix sxiv -a "$(fetch "$t")"
+ $prefix sxiv -a -s f "$(fetch "$t")"
elif regeximatch "$t" '\.(pdf|ps|epub|djvu)$'; then
$prefix zathura "$(fetch "$t")"
elif regeximatch "$t" '(smbc-comics\.com|xkcd\.com|jspowerhour\.com|explosm\.net)'; then