From bede9b3d35c3d385504d3cc661c60066a8099dfe Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 17 Jan 2021 19:31:20 -0300 Subject: Move cron scripts into cron/, remove ad-hoc subfolder --- scripts/open | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 scripts/open (limited to 'scripts/open') diff --git a/scripts/open b/scripts/open new file mode 100755 index 00000000..9383059d --- /dev/null +++ b/scripts/open @@ -0,0 +1,22 @@ +#!/bin/sh -eux + +case "$1" in + *.ico|*.jpg|*.jpeg|*.png) + feh "$1" + ;; + https://www.youtube.com/watch*) + vlc "$1" + ;; + http*|*.svg) + firefox "$1" + ;; + *.pdf) + zathura "$1" + ;; + *.flac|*.ogg|*.mkv) + vlc "$1" + ;; + *) + /run/current-system/sw/bin/xdg-open "$1" + ;; +esac -- cgit v1.3