diff options
| author | Akshay Nair <phenax5@gmail.com> | 2024-09-10 17:59:56 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2024-09-10 17:59:56 +0530 |
| commit | c4e395ccaaac33b1898d447b09377b8e3fd9cfa3 (patch) | |
| tree | eb94e9338f27217d2533efe494297a5066df92d3 /config/newsboat/opener.sh | |
| parent | 3560e22fbf28f1bdf11a573421c37c15cbeabb30 (diff) | |
| download | nixos-config-c4e395ccaaac33b1898d447b09377b8e3fd9cfa3.tar.gz nixos-config-c4e395ccaaac33b1898d447b09377b8e3fd9cfa3.zip | |
Refactor newsboat config to nix
Diffstat (limited to 'config/newsboat/opener.sh')
| -rwxr-xr-x | config/newsboat/opener.sh | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/config/newsboat/opener.sh b/config/newsboat/opener.sh deleted file mode 100755 index 772b35c..0000000 --- a/config/newsboat/opener.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env bash - -type="$1"; shift; - -video() { mpv --player-operation-mode=pseudo-gui "$@"; } -image() { feh -x -F --image-bg "#0f0c19" "$@"; } - -case "$type" in - image) image "$@" ;; - video|audio) video "$@" ;; - *) - case "$1" in - https://*youtube.com/watch*) video "$@" ;; - https://youtu.be/*) video "$@" ;; - *) sensible-browser "$@" 2>&1 >/dev/null & disown ;; - esac - ;; -esac; |
