nix/modules/desktop/hyprland/scripts/mpv.sh

13 lines
212 B
Bash
Raw Normal View History

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