Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/TheYellowArchitect/youtube-dlp-bash

Bash script which opens youtube-dlp on the dmenu, and optionally pastes the clipboard
https://github.com/TheYellowArchitect/youtube-dlp-bash

Last synced: 4 days ago
JSON representation

Bash script which opens youtube-dlp on the dmenu, and optionally pastes the clipboard

Awesome Lists containing this project

README

        

# youtube-dlp-bash
**No copying URL! No pressing paste or enter!!**

You select your text, and activate this script by a hotkey shortcut (e.g F9) and **you instantly download the video!**
No pressing enter or confirmation or whatever bs. Literally 1 button download, couldn't be smoother. No "copy" -> "select input field" -> "paste" -> "enter" on whatever video downloader

```
#!/bin/sh

# Replace /username/ with your username under home directory
# or replace the entire path with wherever you want these videos to be saved.
xclip -o | xargs -r yt-dlp -P "/home/username/videos"
```

Now, you may want to write the URL yourself, or paste it manually, or press enter to confirm the url yourself before downloading.

```
#!/bin/sh

# Give your input to dmenu (bash could work, but ? character triggers zsh globs and other annoying terminal bugs)
targeturl="$(dmenu -p Download