diff options
| author | EuAndreh <eu@euandre.org> | 2022-01-04 15:41:32 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2022-01-04 15:41:32 -0300 |
| commit | 8b9a649ac05469881e17a63112cef69bdc19ed08 (patch) | |
| tree | 8d75b443361d9dbb85ca2a26c54c9d32cc019034 /scripts/open | |
| parent | .gitignore: Remove /cron/generated/ (diff) | |
| download | dotfiles-8b9a649ac05469881e17a63112cef69bdc19ed08.tar.gz dotfiles-8b9a649ac05469881e17a63112cef69bdc19ed08.tar.xz | |
scripts/: Move executables to src/bin/, and add a proper CLI interface to them
Diffstat (limited to '')
| -rwxr-xr-x | scripts/open | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/scripts/open b/scripts/open deleted file mode 100755 index 23f12fe2..00000000 --- a/scripts/open +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh -set -eu - -if [ -z "${1:-}" ]; then - exit -fi - -set -x - -case "$1" in - *.ico|*.jpg|*.jpeg|*.png) - feh "$1" - ;; - https://www.youtube.com/watch*) - vid "$1" - ;; - http*|*.svg|*.html) - "$BROWSER" "$1" - ;; - *.pdf|*.djvu) - nohup zathura "$1" 1>&2 2>/dev/null & - ;; - *.flac|*.ogg|*.mkv) - vid "$1" - ;; - *) - /run/current-system/sw/bin/xdg-open "$1" - ;; -esac |
