From f3bdd21020b8e618433a06c1efc1cc665cb6839d Mon Sep 17 00:00:00 2001 From: krolxon Date: Sat, 16 Aug 2025 20:49:05 +0530 Subject: first commit using stow --- .local/bin/movie | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 .local/bin/movie (limited to '.local/bin/movie') diff --git a/.local/bin/movie b/.local/bin/movie new file mode 100755 index 0000000..4ceb432 --- /dev/null +++ b/.local/bin/movie @@ -0,0 +1,12 @@ +#!/bin/bash + + +if [ -t 0 ]; then + filename="$(find ~/media/movies/ -type f -regex ".*\.\(mkv\|mp4\|mpeg\|avi\|mov\|webm\)" -printf "%f\n" | sort | fzf)" +else + filename="$(find ~/media/movies/ -type f -regex ".*\.\(mkv\|mp4\|mpeg\|avi\|mov\|webm\)" -printf "%f\n" | sort | rofi -case-smart -matching "fuzzy" -dmenu -l 25)" +fi + +filepath="$(find ~/media/movies/ -type f -regex ".*\.\(mkv\|mp4\|mpeg\|avi\|mov\|webm\)")" +mpv "$(grep "$filename" <<< "$filepath")" + -- cgit v1.2.3