dotfiles/scripts/watch-current-video.sh

12 lines
267 B
Bash

#!/usr/bin/env sh
# Not working if there is no navigation bar
xdotool key ctrl+l
xdotool key ctrl+c
# xdotool type yy
# link="$(xclip -o -selection clipboard | sed -E 's|([^&]*)(&)(.*)|\1|')"
link="$(xclip -o | sed -E 's|([^&]*)(&)(.*)|\1|')"
$VIDEOPLAYER "$link"