Alexander Bocken
0feccdb787
Changes to be committed: modified: .config/aliasrc modified: .config/mpv/input.conf modified: .config/zathura/zathurarc modified: .local/bin/bt modified: .local/bin/statusbar/clock modified: .local/bin/tools/ce deleted: .local/bin/tools/ripper modified: .local/bin/tools/wv deleted: .local/bin/transadd
12 lines
460 B
Bash
Executable File
12 lines
460 B
Bash
Executable File
#!/bin/sh
|
|
videos="/tmp/videos$$"
|
|
du -a ~/vids/* ~/dls/* --time | awk '!($1="")' | sort -bgr -k1 | awk '!($1="")' | awk '!($1="")' | sed 's/^ //' | grep -v "$(find ~/vids/* ~/dls/* -type d | sed 's/$/\$/; s/\[/\\[/g; s/\]/\\]/g')" | sed "s|$HOME|\~|" > $videos
|
|
path="$(dmenu -i -l 30 -p "Choose a video to watch:" <"$videos" | sed "s|\~|$HOME|")"
|
|
rm "$videos"
|
|
if [ -n "$path" ];then
|
|
echo "$path" |
|
|
while read -r pathfile; do
|
|
rifle "$pathfile" &
|
|
done
|
|
fi
|