diff --git a/.config/tridactyl/tridactylrc b/.config/tridactyl/tridactylrc index 35e770c..410132a 100644 --- a/.config/tridactyl/tridactylrc +++ b/.config/tridactyl/tridactylrc @@ -62,7 +62,7 @@ command org-capture composite get_current_url | js -p tri.excmds.exclaim_quiet(' "" Unbind this key to rebind it later unbind v -command mpv js -p tri.excmds.shellescape(JS_ARG).then(url => tri.excmds.exclaim_quiet('LIBVA_DRIVERS_PATH=/run/current-system/profile/lib/dri mpv ' + url)) +command mpv js -p tri.excmds.shellescape(JS_ARG).then(url => tri.excmds.exclaim('mpv ' + url)) command torrent js -p tri.excmds.shellescape(JS_ARG).then(url => tri.excmds.exclaim_quiet('transadd ' + url)) diff --git a/scripts/dlvideompv b/scripts/dlvideompv index 3db0c96..a49ac51 100755 --- a/scripts/dlvideompv +++ b/scripts/dlvideompv @@ -2,5 +2,7 @@ notify-send "Downloading  $1" title=$(yt-dlp --get-title $1) +ext=&(yt-dlp --get-ext $1) +filename=$title.$ext alacritty -e yt-dlp -o '/home/chris/vids/%(title)s.%(ext)s' $1 mpv "/home/chris/vids/$filename" & disown