mirror of
https://github.com/zedsalim/debian-z.git
synced 2025-12-06 03:19:28 +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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue