dotfiles/.local/bin/tools/ewv

4 lines
298 B
Plaintext
Raw Normal View History

2020-07-04 14:23:27 +02:00
#!/bin/sh
video=$(du -a ~/eth/videos/* --time | awk '!($1="")' | sort -bg | awk '!($1="")' | awk '!($1="")' | sed 's/^ \/home\/alex\/eth\/videos\///' | grep -E "\....$"| tac | dmenu -l 10 -p "What lecture would you like to watch?");
[ -z $video ] || ( mpv "/home/alex/eth/videos/$video" & disown )