diff options
| author | Robert Günzler <r@gnzler.io> | 2026-02-10 12:32:48 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2026-02-10 12:41:25 +0100 |
| commit | 63feeb9f369fc6176e85c1c2d8fcc863caad1946 (patch) | |
| tree | 41cd5d2d1ec36e74e464caab722cc9b460153f04 /bin/hibiki/nag | |
| parent | 5bd0a4aca65ecb9818ef1285982d160b6b6ff665 (diff) | |
start new
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to 'bin/hibiki/nag')
| -rwxr-xr-x | bin/hibiki/nag | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/bin/hibiki/nag b/bin/hibiki/nag deleted file mode 100755 index bf4225b..0000000 --- a/bin/hibiki/nag +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh - -set -e -[ -n "$DEBUG" ] && set -x - -prio=1 -while getopts p:h opt; do - case "$opt" in - p) prio=${OPTARG} ;; - h|?) printf "usage: %s [options]\n" "$(basename "$0")" - printf "\n" - printf " -p PRIORITY\t (3 = swaynag, 2 = sticky notification)\n" - printf "\n" - exit 2 ;; - esac -done -shift $((OPTIND - 1)) - -message="$1" -shift -desc="$@" - -if [ ${prio} = 1 ]; then - exe="notify-send -u normal -t 10000 ${message} ${desc}" -fi -if [ ${prio} = 2 ]; then - exe="notify-send -u normal -t 0 ${message} ${desc}" -fi -if [ ${prio} = 3 ]; then - exe="swaynag -s ok -m ${message} ${desc}" -fi - -exec $exe |