From f5d92803d9dfe1d43aa4229d3ddca77959551112 Mon Sep 17 00:00:00 2001 From: desktop Date: Sun, 14 Jan 2024 23:59:10 +0300 Subject: [PATCH] File : Add play to play media files from CLI. --- .config/bash/module/File.sh | 6 ++++++ .doc/Bash.md | 1 + 2 files changed, 7 insertions(+) diff --git a/.config/bash/module/File.sh b/.config/bash/module/File.sh index c1fc21d..cb08675 100644 --- a/.config/bash/module/File.sh +++ b/.config/bash/module/File.sh @@ -3,3 +3,9 @@ function o() { xdg-open "${@}" } + +# Play media file from CLI. +# Usage: play +function play() { + flatpak run io.mpv.Mpv --no-audio-display ${*} +} diff --git a/.doc/Bash.md b/.doc/Bash.md index 43657d4..24cf580 100644 --- a/.doc/Bash.md +++ b/.doc/Bash.md @@ -150,6 +150,7 @@ Command|Description Command|Description ---|--- `o `|Open file/dir in GUI. +`play `|Play media file from CLI. ## Find.