~smlavine/scripts

accba450c8fc3cdc286a438e3d4ece5fb46e8ee4 — Sebastian LaVine a month ago 2a97fa5
Add sxiv-pipe
1 files changed, 14 insertions(+), 0 deletions(-)

A src/sxiv-pipe
A src/sxiv-pipe => src/sxiv-pipe +14 -0
@@ 0,0 1,14 @@
#!/bin/sh
# Copyright (c) 2021 Sebastian LaVine <mail@smlavine.com>
# Licensed under the MIT license. See MIT.txt for details.
#
# File:        sxiv-pipe
# Description: Read in an image from stdin, and view it with sxiv.

file="$(mktemp)"

cat > "$file"  # Read image from stdin

sxiv "$file"

rm "$file"