about summary refs log tree commit diff
path: root/dotfiles/scripts/videos
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2022-06-17 19:09:27 +0200
committerBaitinq <[email protected]>2022-06-17 19:09:27 +0200
commit07fc1999fc9963b7d31ce3a0f7e65112767ead23 (patch)
tree0b3e5b274f24d189fa8ca7bfa8d833f05252b4e0 /dotfiles/scripts/videos
downloadnixos-config-07fc1999fc9963b7d31ce3a0f7e65112767ead23.tar.gz
nixos-config-07fc1999fc9963b7d31ce3a0f7e65112767ead23.tar.bz2
nixos-config-07fc1999fc9963b7d31ce3a0f7e65112767ead23.zip
Initial commit
Diffstat (limited to 'dotfiles/scripts/videos')
-rwxr-xr-xdotfiles/scripts/videos9
1 files changed, 9 insertions, 0 deletions
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