From 1e7e2c2c5997d1ae1cb368e8131f493f7f805a2b Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 6 Dec 2023 01:35:04 +0100 Subject: uni: Code style --- .local/bin/uni | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to '.local/bin') diff --git a/.local/bin/uni b/.local/bin/uni index bdfb54d..b520fec 100755 --- a/.local/bin/uni +++ b/.local/bin/uni @@ -16,7 +16,9 @@ func setup { '# >$DATA } -test $#XDG_DATA_HOME -eq 0 && set XDG_DATA_HOME $HOME/.local/share +if test $#XDG_DATA_HOME -eq 0 { + set XDG_DATA_HOME $HOME/.local/share +} set DATA $XDG_DATA_HOME/unicode-data test -f $DATA || setup @@ -28,7 +30,7 @@ set i `{ set rune `printf $runes[$i] if test -t 2 { - wl-copy -n "$rune" + wl-copy -n $rune | notify 'Rune Copied' "The rune ‘$rune’ was copied to the clipboard" } else { wtype -- $rune -- cgit v1.2.3