snownews-url-handler

This commit is contained in:
randomuser 2022-06-18 21:42:39 -05:00
parent da50b8b12e
commit fe7c6e415f
2 changed files with 7 additions and 0 deletions

View File

@ -20,6 +20,7 @@ sh:
cp -f sh/pco $(DESTDIR)$(PREFIX)/bin
cp -f sh/git-survey $(DESTDIR)$(PREFIX)/bin
cp -f sh/vim-swap-handler $(DESTDIR)$(PREFIX)/bin
cp -f sh/snownews-url-handler $(DESTDIR)$(PREFIX)/bin
cp -f sh/status $(DESTDIR)$(PREFIX)/bin
mkc:

6
sh/snownews-url-handler Normal file
View File

@ -0,0 +1,6 @@
#!/bin/sh
tube="$(printf "%s\n" "$1" | grep "watch?v=" | wc -l)"
[ "$tube" -eq 1 ] && mpv "$1" && exit
firefox -P $1