15 lines
291 B
Bash
15 lines
291 B
Bash
# Open file/dir in GUI.
|
|
# Usage: o <FILE>
|
|
function o() {
|
|
xdg-open "${@}"
|
|
}
|
|
|
|
# Play media file from CLI. All files by default.
|
|
# Usage: play [FILE]
|
|
function play() {
|
|
local targets=${*}
|
|
[[ "${targets}" = "" ]] && targets=$(_ls_file)
|
|
|
|
flatpak run io.mpv.Mpv --no-audio-display ${targets}
|
|
}
|