13 lines
201 B
Bash
Executable file
13 lines
201 B
Bash
Executable file
#!/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
|