dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit c636997c85720fdd9470e401cb4ed1376174a569
parent f2caebfc4f289faab27f1e180b58f78a72775e1c
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Sat, 17 Oct 2020 20:05:31 +0200

newsboat: notify-wrapper to give more arguments to notify script

Former-commit-id: 122e991f1b93a8af507cf51947cc8c0d57a3afa9
Diffstat:
Anewsboat/notify-wrapper | 19+++++++++++++++++++
1 file changed, 19 insertions(+), 0 deletions(-)

diff --git a/newsboat/notify-wrapper b/newsboat/notify-wrapper @@ -0,0 +1,19 @@ +#!/bin/sh +os=$(uname -s | tr '[:upper:]' '[:lower:]') +message="$1" +case "$os" in + linux*) + printf "Linux not implemented yet.\n" + ;; + darwin*) + if command -v terminal-notifier 1>/dev/null 2>&1; then + terminal-notifier -sender news -group news -title 'Newsboat reloaded' -message "$message" + fi + ;; + msys*|cygwin*|mingw*|nt|win*) + printf "Windows not implemented yet.\n" + ;; + *) + printf "Operating system %s is unknown.\n" "$os" + ;; +esac