File : Add play to play media files from CLI.

This commit is contained in:
Dmitry Voronin 2024-01-14 23:59:10 +03:00
parent bbbc2cb3ba
commit f5d92803d9
2 changed files with 7 additions and 0 deletions

View file

@ -3,3 +3,9 @@
function o() { function o() {
xdg-open "${@}" xdg-open "${@}"
} }
# Play media file from CLI.
# Usage: play <FILE>
function play() {
flatpak run io.mpv.Mpv --no-audio-display ${*}
}

View file

@ -150,6 +150,7 @@ Command|Description
Command|Description Command|Description
---|--- ---|---
`o <FILE>`|Open file/dir in GUI. `o <FILE>`|Open file/dir in GUI.
`play <FILE>`|Play media file from CLI.
## Find. ## Find.