summaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-12-06 01:35:04 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-12-06 01:35:04 +0100
commit1e7e2c2c5997d1ae1cb368e8131f493f7f805a2b (patch)
tree8d5670fb8583f55ccb0d897ca59456461ecaae95 /.local
parent12ed5b99673a38e864da93a06097efe47bee1e2f (diff)
uni: Code style
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/uni6
1 files changed, 4 insertions, 2 deletions
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