2024-08-24 22:34:54 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2024-08-31 09:28:46 +02:00
|
|
|
# Get the link from the clipboard using wl-paste
|
|
|
|
link=$(wl-paste)
|
2024-08-24 22:34:54 +02:00
|
|
|
|
|
|
|
# Check if a link was provided
|
|
|
|
if [ -n "$link" ]; then
|
|
|
|
# Open the link in mpv
|
|
|
|
mpv "$link"
|
|
|
|
else
|
|
|
|
echo "No URL provided."
|
|
|
|
fi
|