From ad58b57df7b298bc3e25c578f590d44da3ce36c9 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Fri, 17 Jun 2022 19:09:27 +0200 Subject: Initial commit --- dotfiles/scripts/videos | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 dotfiles/scripts/videos (limited to 'dotfiles/scripts/videos') diff --git a/dotfiles/scripts/videos b/dotfiles/scripts/videos new file mode 100755 index 0000000..f7a7a41 --- /dev/null +++ b/dotfiles/scripts/videos @@ -0,0 +1,9 @@ +#!/bin/bash + +choice=$( (echo 1 | grep 0) | dmenu -p "Paste a link to a video:") +if [[ $choice == '' ]]; then + echo "No input." + exit 1 +else + mpv $choice +fi -- cgit 1.4.1