Moves binaries for use with gnu stow
This commit is contained in:
parent
f528ba793c
commit
4fd9f4809b
89 changed files with 0 additions and 0 deletions
12
bin/.bin/dmenu/open-youtube
Executable file
12
bin/.bin/dmenu/open-youtube
Executable 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"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue