Alexander Bocken
64a045064e
modified: .config/coc/extensions/db.json modified: .config/qutebrowser/bookmarks/urls modified: .config/qutebrowser/qsettings/QtProject.conf modified: .config/xprofile modified: .local/bin/bt modified: .local/bin/displayselect modified: .local/bin/tools/dmenuhandler modified: .local/bin/tools/dmenupass modified: .local/bin/tools/passmenu2 modified: .local/bin/tools/watchit modified: .local/bin/tools/wv
12 lines
421 B
Bash
Executable File
12 lines
421 B
Bash
Executable File
#!/bin/sh
|
|
alldata="/tmp/allfiles"
|
|
videos="/tmp/videos"
|
|
du -a ~/vids/* --time | sort -u | awk '!($1="")' | sort -bg | awk '!($1="")' | awk '!($1="")' | sed 's/^ //' | tac > $alldata
|
|
touch $videos
|
|
while read line; do
|
|
[ -f "$line" ] && echo $line >> $videos
|
|
done <$alldata
|
|
cat $videos | sort -u | dmenu -i -l 30 -p "Choose a video to watch:" | sed 's/^/\"/' | sed 's/$/\"/' | xargs -r xdg-open
|
|
rm "$alldata"
|
|
rm "$videos"
|