others/watch.sh

16 lines
319 B
Bash
Raw Normal View History

2023-06-19 05:35:20 +02:00
#!/bin/sh
2024-01-29 03:39:14 +01:00
## view images with or without X server (Xorg); ##
2024-02-26 05:30:45 +01:00
## inside or outside a terminal. (requires sixels graphics support) ##
# watch.sh by @root_informatica.
2023-06-19 05:35:20 +02:00
2023-08-07 04:40:05 +02:00
TARGET=$1
2024-01-21 04:09:33 +01:00
2024-01-17 06:20:45 +01:00
# check display.
2024-02-26 05:30:45 +01:00
[ -n "$DISPLAY" ] && nsxiv "$TARGET" \
|| fbv "$TARGET"
# sixel graphics.
# convert $TARGET -geometry 800x480 sixel:-