Browse Source

Added remote image viewing to sxiv and moved rtv to sxiv

tags/v0.5.0
Micah Halter 8 months ago
parent
commit
572649b557
3 changed files with 19 additions and 2 deletions
  1. 2
    0
      CHANGELOG.md
  2. 2
    2
      rtv/.mailcap
  3. 15
    0
      scripts/.config/Scripts/sxiveh

+ 2
- 0
CHANGELOG.md View File

@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

### Added

- created `sxiveh` script to view remote images/gifs in `sxiv`
- `sxiv` application to replace `feh`
- `G'MIC` plugin to Gimp
- `entr` and auto compilation to vim
@@ -17,6 +18,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

### Changed

- moved rtv from `feh` to `sxiv`
- moved from `scrot` to `maim` for screenshots

## [0.4.0] - 2018-11-22

+ 2
- 2
rtv/.mailcap View File

@@ -1,6 +1,6 @@
image/x-imgur-album; feh --scale-down --auto-zoom %s; test=test -n "$DISPLAY"
image/x-imgur-album; $HOME/.config/Scripts/sxiveh '%s'; test=test -n "$DISPLAY"
image/gif; mpv '%s' --autofit 640x480 --loop=inf; test=test -n "$DISPLAY"
image/*; feh --scale-down --auto-zoom '%s'; test=test -n "$DISPLAY"
image/*; $HOME/.config/Scripts/sxiveh '%s'; test=test -n "$DISPLAY"

video/x-youtube; mpv --ytdl-format=best '%s' --autofit 640x480; test=test -n "$DISPLAY"
video/*; mpv '%s' --autofit 640x480 --loop=inf; test=test -n "$DISPLAY"

+ 15
- 0
scripts/.config/Scripts/sxiveh View File

@@ -0,0 +1,15 @@
#!/usr/bin/bash

case $@ in
http*://*)
folder="/tmp/$(date '+%Y%m%d%H%M%S%N')-sxevimages"
mkdir $folder
for url in $@; do
name="$folder/${url##*/}"
curl -L -o $name -s $url
done
sxiv -ba $folder/*
rm -r $folder
;;
*) sxiv $@;;
esac

Loading…
Cancel
Save