~smlavine/scripts

ref: accba450c8fc3cdc286a438e3d4ece5fb46e8ee4 scripts/src/sxiv-pipe -rwxr-xr-x 305 bytes
accba450Sebastian LaVine Add sxiv-pipe 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
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"