From fd2c508cde1393cbaf4d25abdf9eaebbe5f73895 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 18 Nov 2023 20:21:50 +0100 Subject: bin/sbin: Use the new ‘notify’ API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .local/bin/uni | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to '.local/bin/uni') diff --git a/.local/bin/uni b/.local/bin/uni index 4be2d86..3ed7ec4 100755 --- a/.local/bin/uni +++ b/.local/bin/uni @@ -2,6 +2,9 @@ set -e +export NOTIFY_LONG=unicode +export NOTIFY_SHORT="${0##*/}" + setup() { curl 'https://www.unicode.org/Public/UNIDATA/UnicodeData.txt' \ @@ -23,5 +26,5 @@ rune="$( | xargs printf )" -wl-copy -n "$rune" && notify uni unicode 'Rune Copied' \ - "The rune ‘$rune’ was copied to the clipboard" +wl-copy -n "$rune" \ +&& notify 'Rune Copied' "The rune ‘$rune’ was copied to the clipboard" -- cgit v1.2.3