From 0c67bb163750e480ebf93d666477ae01c18f0c6d Mon Sep 17 00:00:00 2001 From: Jes Olson Date: Tue, 4 Oct 2022 14:04:55 -0500 Subject: [PATCH] trim newline from cut --- shmoji | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shmoji b/shmoji index 47154f5..f6465d0 100755 --- a/shmoji +++ b/shmoji @@ -29,7 +29,7 @@ case "$cmd" in command -v bemenu > /dev/null || die 'bemenu not found' command -v wtype > /dev/null || die 'wtype not found' emoji=$(cat "$emojidb/emojis.txt" | bemenu -c -W 0.2 -l 20) - printf "%s" "$emoji" | cut -d " " -f 1 | wtype - + printf "%s" "$emoji" | cut -d " " -f 1 | tr -d '\n' | wtype - ;; *) printf "%s\n" "usage: shmoji [bemenu | download]"