From 52e3d2e3163d4a40b9b87810963b55ceaeeaa14a Mon Sep 17 00:00:00 2001 From: Hendrik Jaeger Date: Sun, 25 Sep 2016 00:02:32 +0200 Subject: Taskwarrior and media convenience --- .zsh_functions_media | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .zsh_functions_media (limited to '.zsh_functions_media') diff --git a/.zsh_functions_media b/.zsh_functions_media new file mode 100644 index 0000000..7631282 --- /dev/null +++ b/.zsh_functions_media @@ -0,0 +1,36 @@ +function mpvshuffledir () { + mpv ${=MPVOPTS} \ + --shuffle \ + (#i)${1:-.}/**/*.(mpeg|webm|avi|flv|mkv|mpg|wmv|wva|mp4|wva|m4v|ogm|mp4|mov|divx) \ + $@ +} + +function movies_forgotten () { + mpv ${=MPVOPTS} \ + (#i)${1:-.}/**/*.(mpeg|webm|avi|flv|mkv|mpg|wmv|wva|mp4|wva|m4v|ogm|mp4|mov|divx)(Oa) \ + $@ +} + +function movies_oldest () { + mpv ${=MPVOPTS} \ + (#i)${1:-.}/**/*.(mpeg|webm|avi|flv|mkv|mpg|wmv|wva|mp4|wva|m4v|ogm|mp4|mov|divx)(Om) \ + $@ +} + +function movies_newest () { + mpv ${=MPVOPTS} \ + (#i)${1:-.}/**/*.(mpeg|webm|avi|flv|mkv|mpg|wmv|wva|mp4|wva|m4v|ogm|mp4|mov|divx)(om) \ + $@ +} + +function movies_smallest () { + mpv ${=MPVOPTS} \ + (#i)${1:-.}/**/*.(mpeg|webm|avi|flv|mkv|mpg|wmv|wva|mp4|wva|m4v|ogm|mp4|mov|divx)(oL) \ + $@ +} + +function movies_biggest () { + mpv ${=MPVOPTS} \ + (#i)${1:-.}/**/*.(mpeg|webm|avi|flv|mkv|mpg|wmv|wva|mp4|wva|m4v|ogm|mp4|mov|divx)(OL) \ + $@ +} -- cgit v1.2.3