Moves binaries for use with gnu stow

This commit is contained in:
Jonathan Hodgson 2019-07-30 14:06:10 +01:00
parent f528ba793c
commit 4fd9f4809b
89 changed files with 0 additions and 0 deletions

12
bin/.bin/dmenu/open-youtube Executable file
View file

@ -0,0 +1,12 @@
#!/bin/bash
url="$1"
if [ -z "$url" ]; then
url=$(rofi -dmenu -p 'URL')
fi
code=$(youtube-dl "$url" -F | sed -n '/format code/,$ p' | tail -n +2 | rofi -dmenu | awk '{print $1}')
mpv "$url" --ytdl-format="$code"