mirror of
https://github.com/zedsalim/debian-z.git
synced 2025-12-14 15:19:29 +00:00
Update
This commit is contained in:
parent
a5bc6b13c5
commit
a024db129a
4 changed files with 17 additions and 9 deletions
12
config/scripts/mpv-youtube.sh
Executable file
12
config/scripts/mpv-youtube.sh
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
play_clipboard_url() {
|
||||
# Capture the URL from the clipboard
|
||||
url=$(xclip -o -selection clipboard)
|
||||
|
||||
# Run mpv with the URL
|
||||
mpv --ytdl-raw-options=format="best[height<=720]" "$url"
|
||||
}
|
||||
|
||||
play_clipboard_url
|
||||
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "Enter your URL: "
|
||||
|
||||
read url
|
||||
|
||||
mpv --ytdl-raw-options=format="best[height<=720]" $url
|
||||
Loading…
Add table
Add a link
Reference in a new issue