diff options
author | Hendrik Jaeger <git-commit@henk.geekmail.org> | 2016-09-25 00:02:32 +0200 |
---|---|---|
committer | Hendrik Jaeger <git-commit@henk.geekmail.org> | 2016-09-25 00:02:32 +0200 |
commit | 52e3d2e3163d4a40b9b87810963b55ceaeeaa14a (patch) | |
tree | aa3f68a9ecf58eeb0455c83dd8b3d1a7c3573d7b /.zsh_functions_media | |
parent | d443352c96f036858b34c4827d8690ed69c04709 (diff) |
Taskwarrior and media convenience
Diffstat (limited to '.zsh_functions_media')
-rw-r--r-- | .zsh_functions_media | 36 |
1 files changed, 36 insertions, 0 deletions
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) \ + $@ +} |