From f832d43206035e4101472a1d07d261952dfdd85d Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Sun, 31 Jul 2022 11:54:40 +0200 Subject: Swapped echo -e for printf in various scripts. --- emoji/emoji.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 emoji/emoji.sh (limited to 'emoji') diff --git a/emoji/emoji.sh b/emoji/emoji.sh new file mode 100755 index 0000000..dfa22cb --- /dev/null +++ b/emoji/emoji.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +# Feeds an emoji list into dmenu and allows to select one into clipboard + +file="$XDG_CONFIG_HOME/emoji" +selected="$(sed '/^~/d' "$file" | dmenu -i -l 20 -p "Choose an emoji:" | cut -d' ' -f1)" +[ -z "$selected" ] && dunstify -t 2000 "No emoji selected." && exit 0 +echo "$selected" | tr -d '\n' | xsel -ib +dunstify -t 2000 "Copied $(xsel -ob)" -- cgit v1.2.1