This commit is contained in:
Salim Zaidi 2023-06-21 21:49:34 +01:00
parent a5bc6b13c5
commit a024db129a
4 changed files with 17 additions and 9 deletions

12
config/scripts/mpv-youtube.sh Executable file
View 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

View file

@ -1,7 +0,0 @@
#!/bin/bash
echo "Enter your URL: "
read url
mpv --ytdl-raw-options=format="best[height<=720]" $url

View file

@ -16,6 +16,9 @@ alt + s
alt + b
source ~/.config/scripts/bookmarks.sh
alt + y
source ~/.config/scripts/mpv-youtube.sh
# BG Selector
super + F1