nix/home/hyprland/scripts/mpv.sh

13 lines
201 B
Bash
Raw Normal View History

#!/bin/sh
# Run rofi to ask for the link
link=$(rofi -dmenu -p )
# Check if a link was provided
if [ -n "$link" ]; then
# Open the link in mpv
mpv "$link"
else
echo "No URL provided."
fi