This repository has been archived on 2024-03-04. You can view files and clone it, but cannot push or open issues or pull requests.
linux/.config/bash/module/File.sh

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}
}