wv lists newest first again, removed some accidental bookmarks

This commit is contained in:
Alexander Bocken 2020-08-13 14:18:38 +02:00
parent 64a045064e
commit 7bd59a784a
4 changed files with 2 additions and 12 deletions

View File

@ -1,3 +0,0 @@
{
"lastUpdate": 1597156787186
}

Binary file not shown.

View File

@ -1,7 +0,0 @@
{
"downloaded-bytes": 142171362897,
"files-added": 2287,
"seconds-active": 848419,
"session-count": 21,
"uploaded-bytes": 54280909148
}

View File

@ -1,11 +1,11 @@
#!/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
du -a ~/vids/* --time | 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
cat $videos | dmenu -i -l 30 -p "Choose a video to watch:" | sed 's/^/\"/' | sed 's/$/\"/' | xargs -r xdg-open
rm "$alldata"
rm "$videos"