diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-02-11 05:55:49 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-02-11 05:55:49 +0900 |
| commit | 59ef85d49f91e8588885f575f8f9238c0eccd8b2 (patch) | |
| tree | 98766002858f0735e688acdb4390a609a3ab0b01 /ar/.local/bin | |
| parent | 13d4d6752b2086c0bf9ff38d1fa8408f4a5aae5f (diff) | |
modified qutebrowser/config.py, modified bin/fzffiles
Diffstat (limited to 'ar/.local/bin')
| -rwxr-xr-x | ar/.local/bin/fzffiles | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ar/.local/bin/fzffiles b/ar/.local/bin/fzffiles index f6708c1..55793e9 100755 --- a/ar/.local/bin/fzffiles +++ b/ar/.local/bin/fzffiles @@ -42,4 +42,9 @@ files=$(fzf-tmux \ # Check if any files were selected, and exit if not [ -z "$files" ] && exit 0 -openfiles "$files" +absolute_files=$(realpath $files) +if echo "$absolute_files" | while read -r file; do file --mime-type "$file" | grep -q 'video/'; done; then + mpv --quiet --loop $absolute_files +else + openfiles "$absolute_files" +fi |
