plumber

Plumber is a script to open links in their desired program from the terminal.
git clone git://git.swab.dev/plumber.git
Log | Files | Refs

commit 323f9353fabf5b42bc7cd869946f59d7cd18f3b4
Author: Jaron Swab <jaron@swab.dev>
Date:   Fri, 16 Apr 2021 17:18:15 -0400

Initial commit

Diffstat:
Aplumber.sh | 13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/plumber.sh b/plumber.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +content_type=$(echo "$1" | sed 's/.*\.mp4/video/g') + +case $content_type in + "video") + mpv "$1" + exit 0; + ;; + *) + exit 1; + ;; +esac