summaryrefslogtreecommitdiff
path: root/.local/bin/uni
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-11-18 20:21:50 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-11-18 20:21:50 +0100
commitfd2c508cde1393cbaf4d25abdf9eaebbe5f73895 (patch)
treedbb46663dc495da2ffdd5d7da66c2b6c38de5eb4 /.local/bin/uni
parentf8f144c9810fd6f16f843de4297cc20498a11291 (diff)
bin/sbin: Use the new ‘notify’ API
Diffstat (limited to '.local/bin/uni')
-rwxr-xr-x.local/bin/uni7
1 files changed, 5 insertions, 2 deletions
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"