diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-17 18:55:38 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-04-17 19:02:28 +0200 |
commit | e1254e11ae320848c2fc6ce329a33db107083b9f (patch) | |
tree | 49c6257d03d02a31ac78717cfede876ff9fa9dff /bin/guiscripts/mvid | |
parent | ca569f466565dc9d435aa6fd96c1905a12c40216 (diff) |
moved menuscripts to seperate folder
Diffstat (limited to 'bin/guiscripts/mvid')
-rwxr-xr-x | bin/guiscripts/mvid | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/bin/guiscripts/mvid b/bin/guiscripts/mvid deleted file mode 100755 index a31a221..0000000 --- a/bin/guiscripts/mvid +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env sh - -dirs="${1:-$HOME/vids $HOME/dl}" -find -L $dirs 2> /dev/null | - grep ".\+\.\(webm\|mp4\|mpeg\|mkv\)$" | - sort > /tmp/dmvids -cat /tmp/dmvids - -if [ "$MENUCMD" = "tofi" ] -then - menucmd="tofi --width 30% --height 30%" -elif [ "$MENUCMD" = "dmenu" ] -then - menucmd="dmenu -l 10 -g 1 -x -i" -else - menucmd="fzf" -fi - -choice="$(sed 's|^/home/aluc|\~| ; s|\([^/]\)[^/]*/|\1/|g' /tmp/dmvids | - awk '{printf "%s %s\n", NR ":", $0}' | - $menucmd | - cut -f 1 -d ':')" -test -z "$choice" && - exit 1 - -mpv "$(sed -n "${choice}p" /tmp/dmvids)" |