nix/modules/hypr/hyprland/scripts/mpv.sh
2024-09-01 18:51:42 +02:00

13 lines
212 B
Bash
Executable file

#!/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